Install

- Install script: downloads the latest release, verifies it against the release checksums and copies
squarecloudto/usr/local/bin, usingsudowhen you are not root. It works under plainshand supports x86 (64 and 32-bit), arm64 and ARMv7. On Windows, run it inside WSL, or use npm. - npm package: needs Node.js and npm, so install a current LTS release of Node.js first. It installs on x64 and arm64 (Apple Silicon, Windows on ARM, Linux) and on ARMv7 Linux. If the binary can’t be downloaded,
npm installfails instead of leaving a CLI that can’t run.
Verify the installation
Open a new terminal and run:Square Cloud CLI version followed by the installed version. Next, log in with squarecloud auth login.
squarecloud: command not found
squarecloud: command not found
The folder that holds the CLI is not in your
PATH, or the terminal was opened before the install.- Close the terminal and open a new one: a terminal reads
PATHonly when it starts. - npm: run
npm prefix -g. On Windows, the folder it prints (usually%AppData%\npm) must be in yourPATH; on macOS and Linux, itsbinsubfolder must be. Add it in your system settings or shell profile. - Install script: check that
/usr/local/binis in yourPATHwithecho $PATH, and add it to your shell profile if it is missing.
npm install fails on Windows
npm install fails on Windows
Check that Node.js and npm are installed with
node --version and npm --version. If they are not, install Node.js from nodejs.org, open a new terminal and run the install command again.Update the CLI
Run the install command again:--json output.
Language
Messages, help and flag descriptions follow your system language, detected on every run: English, Portuguese, Spanish, German, French, Italian, Japanese and Chinese. TheLANGUAGE, LC_ALL, LC_MESSAGES or LANG variable wins when set; otherwise the CLI uses the OS display language (on Windows, the display language, not the regional format). A language without a translation falls back to English.
To pick a language for a single run:
Next steps
Quickstart
Deploy your first application from the terminal.
Authentication
Log in from the browser, with an API key or in CI.

