Dokploy CLI

April 16, 2026 ยท View on GitHub

Dokploy CLI is a command-line tool to manage your Dokploy server remotely. It provides 449 commands auto-generated from the Dokploy OpenAPI spec, covering every API endpoint.

Installation

npm install -g @dokploy/cli

Authentication

Option 1: Using the auth command

dokploy auth -u https://panel.dokploy.com -t YOUR_API_KEY

Option 2: Environment variables

export DOKPLOY_URL="https://panel.dokploy.com"
export DOKPLOY_API_KEY="YOUR_API_KEY"

Option 3: .env file

Create a .env file in your working directory:

DOKPLOY_URL="https://panel.dokploy.com"
DOKPLOY_API_KEY="YOUR_API_KEY"

The CLI loads it automatically. Shell environment variables take priority over the .env file.

Usage

dokploy <group> <action> [options]

Examples

# List all projects
dokploy project all

# Get a specific project
dokploy project one --projectId abc123

# Create an application
dokploy application create --name "my-app" --environmentId env123

# Deploy an application
dokploy application deploy --applicationId app123

# Create a postgres database
dokploy postgres create --name "my-db" --environmentId env123

# Stop a database
dokploy postgres stop --postgresId pg123

# Get raw JSON output
dokploy project all --json

Getting help

# List all groups
dokploy --help

# List actions in a group
dokploy application --help

# See options for a specific action
dokploy application deploy --help

Available command groups

GroupCommandsGroupCommands
admin1notification38
ai9organization10
application29patch12
backup11port4
bitbucket7postgres14
certificates4preview-deployment4
cluster4project8
compose28redirects4
deployment8redis14
destination6registry7
docker7rollback2
domain9schedule6
environment7security4
gitea8server16
github6settings49
gitlab7ssh-key6
git-provider2sso10
license-key6stripe7
mariadb14swarm3
mongo14user18
mounts6volume-backups6
mysql14

Development

# Install dependencies
pnpm install

# Run in dev mode
pnpm run dev -- project all

# Regenerate commands from OpenAPI spec
pnpm run generate

# Build
pnpm run build

# Lint & format
pnpm run lint

Updating commands

Commands are auto-generated from openapi.json. To update:

  1. Replace openapi.json with the latest spec from the Dokploy repo
  2. Run pnpm run generate
  3. Build with pnpm run build

Contributing

If you want to contribute to Dokploy CLI, please check out our Contributing Guide.

Support

If you encounter any issues or have any questions, please open an issue in our GitHub repository.

License

This project is licensed under the MIT License.