CLI
The Static Studio CLI manages Studio sites from a terminal or an authorized coding assistant. This guide covers the current 0.3.0 release.
Install
Use Node.js 20 or newer and your Studio account.
npm install -g @simply-static/static-studio
static-studio --version
static-studio --help
The shorter command sss is an alias for static-studio. You can update an existing installation with the same npm install command.
Sign in with email
static-studio login --email you@example.com
static-studio whoami
Email login opens a local browser security check before requesting the one-time email code. Complete the check in the browser, then enter the emailed code in the terminal. Use --no-browser if you prefer to open the printed local URL yourself.
The browser and CLI need to reach the same local callback. For a remote machine, container, or unattended workflow, a personal access token is usually more suitable.
Personal access tokens
Open Account → Profile → Access Token in Studio. Access Token is a tab on the Account page.

The full token is shown only when created or regenerated. Save it in your secret manager at that point. Regeneration immediately invalidates the previous token, so update any integrations that still use it. Token issuance and exchange require a subscription with active status and a site quota greater than zero; the account's actual eligibility is authoritative.
Set the token securely in your environment as STATIC_STUDIO_ACCESS_TOKEN, then either save a login or use it directly:
static-studio login --token "$STATIC_STUDIO_ACCESS_TOKEN"
static-studio --json sites list
When the environment variable is set, commands can use it without a saved login. Email security checks do not run for personal-token authentication. Keep tokens out of source control and chat transcripts.
Local sessions and multiple accounts
Saved sessions live in ~/.static-studio/config.json with permissions restricted to your user. Treat that file as private. Profiles keep account sessions separate:
static-studio --profile agency login --email admin@example.com
static-studio --profile agency sites list
static-studio --profile agency logout
Use static-studio logout to remove the selected saved session.
Sites and runtime
Get the site's ID from the dashboard or sites list. Start WordPress before operations that need its runtime.
static-studio sites list
static-studio sites get <siteId>
static-studio sites runtime-status <siteId>
static-studio sites start <siteId>
static-studio sites push <siteId> changes
static-studio sites push <siteId> full
Create a site from a backup
Empty-site creation is currently disabled. Use a supported migration backup or an existing uploaded artifact:
static-studio sites create --name "Client Demo" --migration-file ./studio-backup-client.zip
static-studio sites create --name "Client Demo" --migration-artifact-id <artifactId>
Compatible uploads include ZIP, TAR.GZ/TGZ, WPRESS, and DAF archives up to 10 GB. The contents must be a supported WordPress backup. To replace an existing site, use sites redeploy and review the destination carefully.
Everyday commands
static-studio domains list <siteId>
static-studio domains add <siteId> www.example.com
static-studio domains primary <siteId> www.example.com
static-studio redirects create <siteId> /old /new
static-studio backups list <siteId>
static-studio backups create <siteId>
static-studio backups policy <siteId> daily
static-studio users list <siteId>
static-studio users invite <siteId> person@example.com --role editor
static-studio performance get <siteId>
static-studio health overview <siteId>
static-studio logs get <siteId> --tail 200 --level error
Other command groups cover environments, tags, SFTP public keys, SEO files, IndexNow, alerts, reports, and account usage. Available operations still depend on your site permissions and account features. The ssh group manages public keys; managed Docker access is SFTP file transfer.
Use with coding assistants
Give an assistant access to the installed CLI and the credentials it needs through your approved environment. Ask for specific work, for example: “Use static-studio --json sites list to find my site and summarize its health.” JSON output helps scripts and agents read results consistently.
Review the site ID, destination, and intended effect before commands that publish, restore, replace, delete, or change access. Commands with confirmation prompts accept --yes for intentional automation; use it only when that action is intended.
Full command reference
Use static-studio <command> --help to see current arguments. The official command reference includes the complete command groups and options.