Skip to content

Installation

Install the CLI

Public npm Package

Terminal window
npm install -g @imbrace/cli

From Source

Clone the repository and run the install script:

Terminal window
git clone https://github.com/imbraceltd/imbrace-cli.git
cd imbrace-cli
./install.sh

install.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

Terminal window
cd cli
npm install
npm run build
npm link

Authentication

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:

Terminal window
imbrace login

You 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:

Terminal window
imbrace login --api-key api_xxx...
imbrace login --api-key api_xxx... --profile work
imbrace login --api-key api_xxx... --profile dev --env sandbox --org-id org_xxx

Additional flags: --base-url, --timeout, --check-health, --services.

Login with Email + Password

Terminal window
imbrace login --email user@example.com --password mypass
imbrace login --email user@example.com --password mypass --profile personal

Check Current Login

Terminal window
imbrace whoami
imbrace whoami --json
imbrace whoami --profile work

Logout

Clear credentials for the active (or named) profile:

Terminal window
imbrace logout
imbrace logout --profile work

Credential Storage

OSPath
macOS~/Library/Preferences/imbrace-nodejs/config.json
Linux~/.config/imbrace-nodejs/config.json
Windows%APPDATA%\imbrace-nodejs\Config\config.json