Command Reference
Every command group at a glance. For every flag and option, see the full command reference on the SageCode site — it's generated from the CLI itself, so it always matches the latest release. In your terminal, sagex <group> --help shows the same detail.
| Group | Commands | What it does |
|---|---|---|
auth | login · status · logout | Sign in with your browser (or --with-token), see who you're signed in as, sign out. Guide |
list | workflow · script · run · trigger · vault · server · key · model | Compact tables of your resources; --json for scripting |
show | workflow · script · run · trigger · vault · server · key · model | One resource in detail. show run --logs prints node output; show key --reveal shows secrets after confirming (a model's API key is never shown) |
render | workflow | Draw a workflow as a flow tree, from AutoSage or a local file (--file) |
run | script · workflow | Run now and stream the output live; Ctrl+C stops. Inputs with -p NAME=VALUE. Guide |
trigger | create · fire · poll · watch · invoke · enable · disable · regenerate | Webhooks and cron schedules: set up, fire, follow and rotate. Guide |
new | workflow · script | Scaffold a local file, ready to edit |
push | workflow · script | Create in AutoSage from a local file, or update after confirming (scripts show a diff) |
copy | workflow · script · run | Download to your workspace (--all, or copy run --since 7days). Keys can't be copied |
create | vault · server · key · model | Create Key Vault resources (guide), or add a model with your own API key (guide) |
update | vault · server · key · model | Change them, rotate a key's secret, or replace a model's API key (--new-key) |
rename | workflow · script · vault · server · key · model | Rename in place |
delete | workflow · script · vault · server · key · trigger · model | Delete, after confirming. Deleting a vault deletes everything in it |
use | model | Choose the model Sage (and Autobot on the web) answers with, or --free for AutoSage's free models. Guide |
workspace | set · show | Choose the local folder SageCode reads from and writes to. Concepts |
syntax | trigger · script · email · decision · edge · decision-edge | Print a copy-paste JSON snippet for a workflow node or edge |
Run sagex with no command to open the terminal app, where you can also ask Sage, and sagex --version to see which version you have.
A typical session
sagex new script disk_check --language shell # scripts/disk_check.sh
sagex push script disk_check # create it in AutoSage
sagex run script disk_check.sh -s web-1 # run it on a vault server
sagex new workflow "Disk Check" # workflows/Disk_Check.json
sagex syntax script # snippet for an action node
sagex render workflow --file "Disk Check" # preview the flow locally
sagex push workflow "Disk Check"
sagex trigger create "Disk Check" -t schedule --cron "0 2 * * *"
sagex trigger watch "Disk Check" # wait for the next firing, then follow it