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 personalimbrace login --email user@example.com --password mypass --org-id org_xxxPassword login resolves your organization before saving the credential: if your
account belongs to one organization it is selected automatically; if it
belongs to several, pass --org-id <id> (or pick one interactively when run
in a terminal). The CLI stores the resulting org-scoped token, so subsequent
commands run against that organization.
Check Current Login
imbrace whoamiimbrace whoami --jsonimbrace whoami --profile workLogout
Clear credentials for the active (or named) profile:
imbrace logoutimbrace logout --profile workUpdating the CLI
From v0.6.8 onwards, the CLI includes a built-in self-update command:
imbrace update # update to latestimbrace update --check # check for updates without installingimbrace update --version 0.6.7 # install a specific versionFor versions older than v0.6.8, update manually:
npm install -g @imbrace/cli@latestCredential Storage
| OS | Path |
|---|---|
| macOS | ~/Library/Preferences/imbrace-nodejs/config.json |
| Linux | ~/.config/imbrace-nodejs/config.json |
| Windows | %APPDATA%\imbrace-nodejs\Config\config.json |