@squaredup/cli
CLI tool for validating and deploying plugins to the SquaredUp platform.
Installation
npm install -g @squaredup/cli
pnpm add -g @squaredup/cli
Requires Node.js 22 or later
Authentication
Before deploying plugins you need to authenticate with your SquaredUp API key. You can generate one at app.squaredup.com → Settings → Advanced → API.
Interactive login (prompts for key and region):
squaredup login
Non-interactive login (useful in CI):
squaredup login --apiKey <your-api-key> --region eu
--apiKey | string | — | Your SquaredUp API key |
--region | us, eu | us | Target region |
Check your current authentication status:
squaredup status
Log out and clear stored credentials:
squaredup logout
Commands
login | Available | Authenticate with the SquaredUp platform |
logout | Available | Clear stored credentials |
status | Available | Show current authentication status |
deploy | Available | Deploy a plugin to the platform |
list | Available | List deployed plugins for your tenant |
delete | Available | Delete a deployed plugin by ID |
Global flags
--silent | Suppress all output |
--debug | Enable verbose debug output |
--version | Print CLI version |
--help | Show help |
Development
Prerequisites: Node.js ≥22, pnpm
git clone <repo>
cd plugin-cli
pnpm install
| Build | pnpm build | Compile TypeScript to dist/ |
| Dev | pnpm dev | Watch mode — rebuild on file changes |
| Lint | pnpm lint | Run ESLint |
| Test | pnpm test | Run tests with Vitest |
After building, you can run the CLI locally:
node dist/index.js --help
To use the squaredup command globally from your local checkout, link the package after building:
pnpm build
pnpm link --global
The squaredup command will now resolve to your local dist/index.js. To unlink when you're done:
pnpm unlink --global @squaredup/cli
Credential storage
Credentials (API key, region, tenant name) are stored in the OS-specific user config directory managed by the conf package under the project name squaredup-cli. The config file is written with 0o600 permissions (owner read/write only).