Reference

CLI reference

Every apex command, generated from the CLI itself so it matches the version you install — grouped by what you are trying to do.

Install

The CLI needs Node.js 24 or later.

npm install -g @apex-actions/cli
apex --version

Sign in

On your own machine, sign in through the browser. The CLI saves a token for your user only, and apex whoami tells you which credential it is using.

apex login
apex whoami

Scripts and CI jobs use a token in APEX_TOKEN instead — see Tokens for scripts and CI. A token carries the permissions you give it, and each command below that reaches your repositories says which one it needs.

Sign in and tokens

Run locally

Runs and logs

Repository configuration

Caches and artifacts

Usage and cost