CLI
The hiraiship command deploys a directory from your terminal or from CI: it packs your files, uploads them, and follows the build until the deployment is live.
Install
The CLI needs Node.js 20.12 or later.
Or run it without installing:
Check it works:
Commands
| Command | What it does |
|---|---|
hiraiship login | Log in through the dashboard |
hiraiship logout | Log out and revoke the session |
hiraiship whoami | Show your account and workspaces |
hiraiship link | Link a directory to a project |
hiraiship deploy | Deploy a directory |
hiraiship help <command> lists a command's options. Every command also takes the global options.
A typical session
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Failure: a failed build, a failed publish, a refused request |
130 | Interrupted with Ctrl-C, or a prompt canceled |
hiraiship deploy exits with 1 when the build or its publication fails, so a CI job fails with it.