Installation
Install the CLI
Public npm Package
npm install -g @imbrace/cliFrom Source
Clone the repository and run the install script:
git clone https://github.com/imbraceltd/imbrace-cli.gitcd imbrace-cli./install.shinstall.sh runs bun install (or npm install if Bun is not available), npm run build, npm link, then symlinks imbrace into /opt/homebrew/bin (Apple Silicon) or /usr/local/bin (Intel).
Manual Build
cd clinpm installnpm run buildnpm linkAuthentication
Resource commands (ai-agent, data-board, document-ai, guardrail, orchestrator, workflow) auto-prompt login if not authenticated for the resolved profile. Auth and profile management commands (login, logout, whoami, docs, profile) do not auto-prompt.
Credentials and environment settings are stored in profiles. Resolution order: --profile flag > IMBRACE_PROFILE env var > active_profile config > "default".
Interactive Login
Pass no flags to be prompted interactively:
imbrace loginYou will be asked to choose a method (API Key or Email + Password) and optionally set a profile name and SDK environment.
Login with API Key
Recommended for CI/CD and coding agents:
imbrace login --api-key api_xxx...imbrace login --api-key api_xxx... --profile workimbrace login --api-key api_xxx... --profile dev --env sandbox --org-id org_xxxAdditional flags: --base-url, --timeout, --check-health, --services.
Login with Email + Password
imbrace login --email user@example.com --password mypassimbrace login --email user@example.com --password mypass --profile personalCheck Current Login
imbrace whoamiimbrace whoami --jsonimbrace whoami --profile workLogout
Clear credentials for the active (or named) profile:
imbrace logoutimbrace logout --profile workCredential Storage
| OS | Path |
|---|---|
| macOS | ~/Library/Preferences/imbrace-nodejs/config.json |
| Linux | ~/.config/imbrace-nodejs/config.json |
| Windows | %APPDATA%\imbrace-nodejs\Config\config.json |