CLI
Install and configure the Ink CLI — deploy, manage, and observe your services from the terminal
The Ink CLI gives you direct access to every Ink capability from the command line. Use it standalone, in CI/CD pipelines, or as the engine behind the Ink Skill for AI agents.
Installation
npm install -g @mldotink/clibrew install mldotink/tap/inkgo install github.com/mldotink/cli@latestVerify the installation:
ink --versionAuthentication
Browser login
ink loginOpens your browser for OAuth authentication. Credentials are saved to ~/.config/ink/config by default.
To save credentials to the current project instead of globally:
ink login --global=falseThis writes a .ink file in the current directory (auto-added to .gitignore).
API key
ink login --api-key dk_live_your_key_hereGet an API key from ml.ink Settings.
Environment variable
export INK_API_KEY=dk_live_your_key_hereUseful for CI/CD and scripts.
Verify
ink whoamiShows your account, current workspace, plan, and connection status.
Configuration
Ink resolves configuration in this order (highest priority first):
- CLI flags —
--api-key,--workspace,--project - Environment variable —
INK_API_KEY - Local config —
.inkfile in the current directory - Global config —
~/.config/ink/config
Set defaults
ink config set workspace my-team
ink config set project backendView current config
ink config showGlobal flags
Every command accepts these flags:
| Flag | Description |
|---|---|
--json | Output as JSON (for scripting) |
--workspace, -w | Override workspace |
--project | Override project |
--api-key | Override API key |
Quick example
# Login
ink login
# Deploy a service from an Ink-managed repo
ink deploy my-app --port 3000
# Check status
ink status my-app
# View logs
ink logs my-app