Skip to content

Developer CLI

Make a CI token

POST/v1/cli/tokens

A CLI token for a machine, shown once: it acts for the same person in the same workspace, with the presenting token’s scopes or fewer, and expires in expiresInDays (1 to 90, default 90). What immiscible token create calls.

#Authentication

CLI token

A token (imc_...) the developer CLI gets by signing in through the browser (immiscible login, the OAuth device grant), sent as Authorization: Bearer. It acts for one person in one workspace: it reads agents and status, and registers an agent with a rule from the same purposes as the console's "Add an agent". It never approves anything or changes an existing rule. Every use re-checks the person's membership and the workspace's sign-in rules; it lasts 90 days and ends from the console's sessions.