The SquaredUp CLI
The SquaredUp CLI (squaredup) lets you deploy, update, list, and delete plugins directly from your terminal, without waiting for a branch pipeline. It's the fastest way to iterate during development.
Installation
Requires Node.js 22 or later.
Use the following commands to install the client. Once installed, the squaredup command will be available from your terminal.
bash
npm install -g @squaredup/cli
# or
pnpm add -g @squaredup/cliAuthentication
Run the following command to log in:
bash
squaredup loginThis opens a browser window where you sign in and authorize the CLI. It's the recommended way to authenticate: no API key to generate or store, and it works on every plan.
To target a specific region:
bash
squaredup login --region euCredentials are stored securely in your OS user config directory with owner-only read/write permissions.
To check your current authentication status:
bash
squaredup statusTo log out and clear stored credentials:
bash
squaredup logoutNon-interactive login (CI/CD and automation)
For pipelines and scripts where a browser isn't available, authenticate with an API key instead:
bash
squaredup login --apiKey <your-api-key> --region euGenerate a key from app.squaredup.com > Settings > Advanced > API.
Make sure to copy and securely store the API key when it is generated. For security reasons, you’ll only be able to view it once.
Using the CLI
Once the CLI is installed you can start using it to manage your custom plugins. Using the CLI you can easily deploy a plugin from a folder, list your installed plugins and delete your plugins.
Deploying a plugin
You can deploy either from a .zip file or directly from an unzipped plugin folder. Deploying from a folder is particularly useful during development — you can make quick edits and redeploy without re-exporting from the UI.
Deploying from a zip file:
bash
squaredup deploy plugin.zipDeploying from an unzipped plugin folder:
Run the following command from within the plugin folder.
If a plugin with the same name and suffix already exists, the CLI will prompt you to confirm whether you want to update the existing deployment.
bash
squaredup deploy --suffix test-v1Listing deployed plugins
To see all plugins currently deployed to a stage:
bash
squaredup listThis is useful for checking what is currently deployed, validating deployment names, and locating plugin IDs for deletion.
When the plugins are listed, press ENTER on the highlighted entry to copy the ID to your clipboard.
Deleting a plugin
Use an interactive selector to pick the plugin to delete:
bash
squaredup deleteOr delete directly by ID:
bash
squaredup delete <id>