dokploy

SKILL.md

Dokploy CLI Skill

Use this skill to manage Dokploy from the command line using the official Dokploy CLI:

  • Authenticate + verify access
  • Create/list/inspect projects
  • Create/delete environments
  • Create/deploy/stop/delete applications
  • Pull/push environment variables to/from a file
  • Create/deploy/stop/delete databases (MariaDB, PostgreSQL, MySQL, MongoDB, Redis)

Primary sources of truth:

If anything fails due to version drift, immediately fall back to:

  • dokploy --help
  • dokploy <command path> --help …and adapt to the discovered syntax.

Non-negotiable rules

Safety rules

  1. Never run destructive commands (delete, stop) without explicit user confirmation.
  2. Before making changes, verify auth: dokploy verify.
  3. Prefer idempotent workflows (list/inspect first, then create/deploy).
  4. If the user says “production” (or if it’s ambiguous), announce exactly what will change before running the command.

Oclif parsing rule (critical)

Dokploy CLI is built on oclif. oclif treats tokens after a command as potential deeper subcommands in many cases. Example: dokploy project create vibe-kanban can be interpreted as a command lookup like project:create:vibe-kanban, not as “create a project named vibe-kanban”.

Therefore:

  • Do NOT pass resource names as bare positional arguments unless dokploy <cmd> --help explicitly documents positional args.
  • Prefer flags (commonly -n/--name, -p/--project, -e/--environment, etc.) OR use interactive prompts when the CLI supports them.
  • If you don’t know the flags for a command, run dokploy <cmd> --help FIRST, then retry with the documented flags.

Standard operating pattern (help-first, robust)

When you need to use any command you are not 100% sure about:

  1. Check top-level help
dokploy --help
  1. Check the specific command help
dokploy <command> --help
# e.g.
dokploy project create --help
  1. Run the command using flags (NOT trailing positional “names”) or run with no extras and follow prompts.

Install / update

Install globally:

npm install -g @dokploy/cli

Verify install:

dokploy --version
dokploy --help

Authentication

Tokens are generated in the Dokploy dashboard (Settings → Profile → Generate token). Then authenticate via CLI.

Authenticate:

dokploy authenticate

Verify current auth:

dokploy verify

Troubleshooting:

  • If verify fails, run dokploy authenticate again and ensure the server URL + token are correct.
  • If permissions are insufficient, generate a new token with appropriate access.

Projects

List projects:

dokploy project list

Inspect project (if available in your CLI version):

dokploy project info --help
dokploy project info

Create a project (IMPORTANT: use flags or interactive mode; do not pass positional name unless documented):

dokploy project create --help
# Option A (recommended): interactive prompts
dokploy project create

# Option B: use flags (example; confirm with --help)
dokploy project create -n "vibe-kanban"

Environments

Create an environment:

dokploy environment create --help
# Option A: interactive prompts
dokploy environment create

# Option B: flags (example; confirm with --help)
dokploy environment create -n "staging" -p "vibe-kanban"

Delete an environment (destructive — confirm with user first):

dokploy environment delete --help
dokploy environment delete

Applications

Create an application:

dokploy app create --help
# Option A: interactive prompts
dokploy app create

# Option B: flags (example; confirm with --help)
dokploy app create -n "web" -p "vibe-kanban" -e "staging"

Deploy an application:

dokploy app deploy --help
dokploy app deploy

Stop a running application (service disruption — confirm first):

dokploy app stop --help
dokploy app stop

Delete an application (destructive — confirm first):

dokploy app delete --help
dokploy app delete

Recommended app workflow (bootstrap → deploy)

  1. Verify auth:
dokploy verify
  1. Ensure project exists (list first; create if needed):
dokploy project list
dokploy project create --help
dokploy project create
  1. Ensure environment exists:
dokploy environment create --help
dokploy environment create
  1. Create the app:
dokploy app create --help
dokploy app create
  1. Set environment variables (see Env Vars section)

  2. Deploy:

dokploy app deploy --help
dokploy app deploy

Environment variables (pull/push)

Dokploy CLI supports syncing environment variables through a file.

Pull env vars from Dokploy into a local file:

dokploy env pull --help
dokploy env pull .env.dokploy

Push env vars from a file into Dokploy:

dokploy env push --help
dokploy env push .env.dokploy

Best practices:

  • Treat .env.dokploy as sensitive; do not commit secrets.
  • Prefer “pull → edit → push → redeploy”:
dokploy env pull .env.dokploy
# edit .env.dokploy
dokploy env push .env.dokploy
dokploy app deploy

If there are multiple apps/environments, use dokploy env --help to confirm how targets are selected (flags vs prompts).

Databases

Dokploy CLI supports managing:

  • MariaDB
  • PostgreSQL
  • MySQL
  • MongoDB
  • Redis

General pattern:

dokploy database <type> create
dokploy database <type> deploy
dokploy database <type> stop
dokploy database <type> delete

Always run --help first for the specific type to confirm flags/target selection.

MariaDB:

dokploy database mariadb --help
dokploy database mariadb create --help
dokploy database mariadb create
dokploy database mariadb deploy --help
dokploy database mariadb deploy

PostgreSQL:

dokploy database postgresql --help
dokploy database postgresql create --help
dokploy database postgresql create
dokploy database postgresql deploy --help
dokploy database postgresql deploy

MySQL:

dokploy database mysql --help
dokploy database mysql create --help
dokploy database mysql create
dokploy database mysql deploy --help
dokploy database mysql deploy

MongoDB:

dokploy database mongodb --help
dokploy database mongodb create --help
dokploy database mongodb create
dokploy database mongodb deploy --help
dokploy database mongodb deploy

Redis:

dokploy database redis --help
dokploy database redis create --help
dokploy database redis create
dokploy database redis deploy --help
dokploy database redis deploy

Stop/delete (confirm first):

dokploy database postgresql stop --help
dokploy database postgresql stop

dokploy database postgresql delete --help
dokploy database postgresql delete

Recommended database + app workflow

  1. Create + deploy DB (example: Postgres):
dokploy verify
dokploy database postgresql create --help
dokploy database postgresql create
dokploy database postgresql deploy --help
dokploy database postgresql deploy
  1. Add DB connection vars and redeploy app:
dokploy env pull .env.dokploy
# edit .env.dokploy to include DATABASE_URL / credentials
dokploy env push .env.dokploy
dokploy app deploy

Operational playbooks (agent-ready)

Playbook: “Deploy my app to Dokploy”

Steps:

  • Verify auth
  • Ensure project + environment exist
  • Create app if missing
  • Push env vars
  • Deploy

Commands (help-first):

dokploy verify
dokploy project list
dokploy project create --help
dokploy project create
dokploy environment create --help
dokploy environment create
dokploy app create --help
dokploy app create
dokploy env push --help
dokploy env push .env.dokploy
dokploy app deploy --help
dokploy app deploy

Playbook: “Update env vars and redeploy”

dokploy verify
dokploy env pull --help
dokploy env pull .env.dokploy
# edit .env.dokploy
dokploy env push --help
dokploy env push .env.dokploy
dokploy app deploy

Playbook: “Provision Postgres then deploy app”

dokploy verify
dokploy database postgresql create --help
dokploy database postgresql create
dokploy database postgresql deploy --help
dokploy database postgresql deploy
dokploy env push .env.dokploy
dokploy app deploy

Playbook: “Stop or delete resources”

  • Stop: service disruption — confirm with user first.
  • Delete: irreversible — confirm twice.

Examples:

dokploy app stop
dokploy app delete
dokploy environment delete
dokploy database postgresql stop
dokploy database postgresql delete

When to use the Dokploy dashboard instead of CLI

Use the dashboard when:

  • You need to confirm or edit app settings (repo/image/build config) not exposed by the CLI.
  • You need richer visibility (logs/status) and the CLI doesn’t provide it.
  • You’re unsure which resource a command will target and --help doesn’t clarify it.

Reference links

Weekly Installs
1
Repository
abpai/skills
First Seen
13 days ago
Installed on
amp1
cline1
pi1
openclaw1
opencode1
cursor1