CLI Overview

Manage ZenSailor from your terminal with the zensailor CLI.

The official zensailor CLI manages your instance from the terminal — for deployments, backups, nodes, networks, and CI scripts. It runs on Node.js 22.13 and newer on Linux, macOS, and Windows.

Install#

Download the CLI package from your ZenSailor dashboard under API Documentation → Download CLI, then install it globally:

BASH
# Install the downloaded package globally
npm install --global ./zensailor-cli-*.tgz

In Windows PowerShell, resolve the downloaded filename before passing it to npm:

POWERSHELL
$cliPackage = Get-ChildItem .\zensailor-cli-*.tgz | Sort-Object LastWriteTime -Descending | Select-Object -First 1
npm install --global $cliPackage.FullName
zensailor login

First login#

Create an API token in Settings → Security before running zensailor login. The CLI stores the instance URL and token in ~/.zensailor/config.json with owner-only file permissions. Run zensailor --help to explore organizations, projects, environments, templates, services, nodes, and system tools.

Release-matched and self-hosted: the release pipeline compiles the CLI, embeds the tarball in the control-plane image, and makes it available from the authenticated dashboard. No npm registry or third-party package host is involved.

Command groups#

GroupPurpose
login, logout, configAuthentication and saved configuration
orgOrganizations, members, roles, deployment concurrency
project, envProjects and environments (create, update, clone, remove)
serviceDeploy, deployments, operations, tags, webhooks, compose, windows, backups
domainService domains
env-varEnvironment variables, scoped
nodeNode inventory, capacity, maintenance, decommission
containerContainer workbench: ps, inspect, logs, files, start/stop/restart/rm
systemOrchestrator health, queue, retries, DNS defaults, prune
networkOrganization-managed networks
template, addonTemplate catalogue and managed databases
instanceInstance status, stats, update, config
ssh-keySSH keys for Git providers and node provisioning
completionShell completion generation

See the CLI Reference for full command documentation.