Deploy with AI & CLI
How do I deploy from the terminal?
Install the CLI with npm install -g entrify-deploy, log in with entrify auth login, and run entrify deploy in a repository or entrify upload for an HTML page.
Install the CLI
It needs Node.js 18 or later and installs the entrify command.
CommandLog in
Enter your email and password. The password is always typed in, never passed as a flag. A login lasts 7 days; in CI, set ENTRIFY_TOKEN to an API token instead.
CommandDeploy a repository
Run it in the repository. Entrify builds what is pushed to the git remote; --create makes a project for a new repository.
CommandOr publish an HTML page
Upload an .html file, a folder with index.html at its top, or a .zip. No git is needed.
Command
What commands are there?
Project commands act on the project matched from the current repository; pass --project-id to choose another. Every command also takes --json.
| Command | Flags | What it does |
|---|---|---|
| entrify deploy | --project-id <id|slug>, --create, --dir <path> | Deploy the current repository (the default command). Matches the project by its git remote. |
| entrify upload <file|folder|zip> | --name <name>, --project-id <id|slug>, --dry-run | Publish files as a static site. --project-id uploads a new version of a site; --dry-run lists the files and checks the name without uploading. |
| entrify status | --project-id | The latest deployment and the live URL. |
| entrify logs | --deployment <id>, --lines <n|all>, --follow | The build log of the latest deployment (last 200 lines by default). |
| entrify env list | set KEY=VALUE … | push [file] | unset KEY … | --project-id | Environment variables. Values are stored encrypted and never printed. Changes apply on the next deploy. |
| entrify rollback | --to <deployment-id> | Go back to the previous successful deployment. |
| entrify cancel | --project-id | Cancel the deployment that is queued or building. |
| entrify projects | List your projects and their status. | |
| entrify auth login | --email <email>, --api-url <url> | Log in. The password is always prompted. |
| entrify auth status | Show the account you are logged in as. | |
| entrify auth token | Print the saved login token (expires after 7 days). | |
| entrify auth logout | Clear the saved login. | |
| entrify mcp | Run the MCP server that Claude Desktop starts. Use the extension instead of running it yourself. | |
| entrify help, --version | Print the command reference or the installed version. |
How do I use it in scripts, CI or AI agents?
Add --json to any command for exactly one JSON object on stdout: { "ok": true, ... } or { "ok": false, "error": { "code", "message" } }. A failed deploy also includes cause, fix and the last 40 lines of the log. Commands never prompt without a terminal or with --json.
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | The operation failed, for example the build failed |
| 2 | Needs input: a flag, a project or a file |
| 3 | Not logged in, or the login or token expired |
Which environment variables does it read?
ENTRIFY_TOKEN: skipsauth login. Use an API token (ent_…); the output ofentrify auth tokenalso works but expires after 7 days.envcommands need a Full access token.ENTRIFY_URL: the Entrify URL,https://entrify.siteby default.- The older
DROPDEPLOY_TOKENandDROPDEPLOY_URLnames still work.
export ENTRIFY_TOKEN=ent_... entrify deploy --project-id my-app --json
Where is the source?
The CLI is open source (MIT) at github.com/kpndevrootentri/entrify-cli and published on npm as entrify-deploy. It was called dropdeploy-cli; the dropdeploy command still works.