Installation & Authentication
Requirements
Section titled “Requirements”- Node.js 18 or later
Install
Section titled “Install”Install the CLI globally via npm:
npm install -g @authaction/cliVerify the installation:
authaction --versionLog In
Section titled “Log In”Authenticate with your AuthAction account. This opens a browser window to complete the OAuth2 login flow and stores a token locally.
authaction loginCheck Your Identity
Section titled “Check Your Identity”After logging in, confirm who you are authenticated as:
authaction whoamiSelect a Tenant
Section titled “Select a Tenant”Most commands operate on a specific tenant. Set the active tenant so you don’t have to pass --tenant on every command:
authaction use-tenant <tenant-name>You can still override the active tenant per-command with the --tenant flag.
Regions
Section titled “Regions”Tenant data is stored in a specific region. Commands that interact with tenant resources accept a --region flag:
eu | us | au | ca | cn | in | gb | jpThe default region is eu. Set --region explicitly when your tenant is in a different region, or configure it once using:
authaction configureLog Out
Section titled “Log Out”Remove the stored credentials from your machine:
authaction logout