@squaredup/cli
v0.2.6
Published
CLI tool for managing SquaredUp plugins
Keywords
Readme
@squaredup/cli
CLI tool for validating and deploying plugins to the SquaredUp platform.
Installation
npm install -g @squaredup/cli
# or
pnpm add -g @squaredup/cliRequires Node.js 20 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 loginNon-interactive login (useful in CI):
squaredup login --apiKey <your-api-key> --region eu| Option | Values | Default | Description |
| ---------- | ---------- | ------- | ---------------------- |
| --apiKey | string | — | Your SquaredUp API key |
| --region | us, eu | us | Target region |
Check your current authentication status:
squaredup statusLog out and clear stored credentials:
squaredup logoutCommands
| Command | Status | Description |
| ---------- | --------- | ---------------------------------------- |
| 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 |
| validate | Available | Validate a plugin package or folder |
| list | Available | List deployed plugins for your tenant |
| delete | Available | Delete a deployed plugin by ID |
Global flags
| Flag | Description |
| ----------- | --------------------------- |
| --silent | Suppress all output |
| --debug | Enable verbose debug output |
| --version | Print CLI version |
| --help | Show help |
Development
Prerequisites: Node.js ≥20, pnpm
git clone <repo>
cd plugin-cli
pnpm install| Script | Command | Description |
| ------ | ------------ | ------------------------------------ |
| 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 --helpTo use the squaredup command globally from your local checkout, link the package after building:
pnpm build
pnpm link --globalThe squaredup command will now resolve to your local dist/index.js. To unlink when you're done:
pnpm unlink --global @squaredup/cliCredential 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).
