Deploy with AI & CLI
How do I deploy from Claude Code?
Install the Entrify plugin and say “deploy this”. Claude deploys your repository, or uploads an HTML page, with the entrify CLI and replies with the live URL.
Install the plugin
Run this in Claude Code. On Claude Code older than 2.1.275, run /plugin marketplace add kpndevrootentri/entrify-cli, then /plugin install entrify@entrify.
CommandAsk Claude to deploy
Say "deploy this" in a repository, or "deploy this page to Entrify" for an HTML file. You can also type /entrify:deploy. Claude installs the entrify CLI if it is missing.
Log in once
If you are not logged in, Claude asks you to run this in the session. The ! runs it in this session and hides the password as you type; Claude never asks for it in the chat.
CommandGet the live URL
Claude deploys, checks that the site answers, and replies with its URL.
How does Claude deploy a repository?
Entrify builds from your git remote, so Claude first checks for uncommitted or unpushed changes and asks before it commits or pushes anything. It then runs entrify deploy --json. If no Entrify project matches the repository, it asks whether to create one.
How does Claude publish an HTML page?
It puts the page in one .html file, or in a folder with index.html at the top, and runs entrify upload. No git is needed. If you already have a site with that name, Claude asks whether to update it or use another name. For a folder it did not make, it shows you the file list first. See Publish an HTML page for the limits.
What does Claude do when a deploy fails?
It reads the cause and the build log, then fixes what it can and deploys again, at most 3 times:
- Code or config (a missing dependency, a build error, an app listening on 127.0.0.1): it fixes the repository, shows you the change and pushes with your OK.
- Missing settings: it checks which environment variables are set and asks you for the missing values. It never prints secrets or commits them.
- A server problem (such as no disk space): it stops and tells you it is not your code.
After 3 failed attempts it stops and sums up what it tried. It asks before rolling back.
Can I use it without the plugin system?
Yes. Save the skill as a command, then type /deploy:
curl -o ~/.claude/commands/deploy.md https://entrify.site/deploy.md