squarecloud help
Usage
Output
Global flags
Destructive commands also accept
-y/--yes to skip their y/N confirmation. The pages of each command list it.
squarecloud status
Usage
squarecloud app status or squarecloud db status.
Output
X instead. See also the status page.
Debugging
- Set
SQUARECLOUD_DEBUG=1to trace every API request to stderr: method, path, status and duration. Headers, query strings and bodies are never logged, so the output is safe to share. - Read requests are retried automatically after a network error or when the platform is briefly busy.
- Ctrl+C cancels the request in flight; a second Ctrl+C exits a command that is waiting for input.
Scripts and CI
The CLI behaves predictably when it runs without a person at the keyboard:- Authentication: set
SQUARECLOUD_API_KEYinstead of runningauth login. See Authentication. - Pass IDs explicitly. The application and database pickers need a terminal. See how the CLI finds your app.
- Exit codes: every failure exits with code
1, including when the CLI was installed through npm. Check exit codes, not message text. - Confirmations fail closed. Answering no, or running a command that asks for confirmation without a terminal and without
-y, exits with code1and changes nothing. The commands that ask areapp delete,app env replace,app env remove --all,app file delete,app file read -oover an existing file,app network purge-cache,app snapshot restore,db delete,db snapshot restore,db credentials reset,workspace delete,workspace leave,workspace member remove, andauth loginwhen it would replace another account’s key. - stdout carries only results. Errors, the “not logged in” message, confirmation prompts, failure lines and the update notice go to stderr. With
upload --json, progress messages go to stderr too. - Parse
--json, not tables. On non-English systems, table headers andinfolabels are translated. To force English, run withLC_ALL=en_US.UTF-8. - Already in that state is success. Starting a running app or database, or stopping a stopped one, says so and exits with code
0.

