Dokploy CLI is a powerful and versatile command-line tool designed to remotely manage your Dokploy server. It simplifies the process of creating, deploying, and managing applications and databases.
$ npm install -g @dokploy/cli$ dokploy COMMAND
running command...
$ dokploy --version
dokploy/0.0.0 darwin-arm64 node-v18.18.0
$ dokploy --help [COMMAND]
USAGE
$ dokploy COMMAND
...You can create a .dokploy.json file in any project directory to set default values for project, environment, and application. This lets you skip interactive prompts when running commands.
$ cd ~/my-app
$ dokploy initThis walks you through selecting a project, environment, and (optionally) an application, then writes a .dokploy.json file:
{
"projectId": "abc123",
"environmentId": "def456",
"applicationId": "ghi789"
}Now commands run from that directory (or any subdirectory) will use these defaults automatically:
$ dokploy app deploy -y # deploys the configured application
$ dokploy env pull .env.local # pulls env vars without promptsFlags passed on the command line always take priority over .dokploy.json values.
dokploy authenticate: Authenticate with the Dokploy server.dokploy verify: Verify current authentication.
dokploy project:create: Create a new project.dokploy project:info: Get information about an existing project.dokploy project:list: List all projects.
dokploy environment:create: Create a new environment.dokploy environment:delete: Delete an existing environment.
dokploy app:create: Create a new application.dokploy app:delete: Delete an existing application.dokploy app:deploy: Deploy an application.dokploy app:stop: Stop a running application.
dokploy env pull <file>: Pull environment variables from Dokploy in a .dokploy env push <file>: Push environment variables to Dokploy from a .
Dokploy supports various types of databases:
dokploy database:mariadb:createdokploy database:mariadb:deletedokploy database:mariadb:deploydokploy database:mariadb:stop
dokploy database:mongo:createdokploy database:mongo:deletedokploy database:mongo:deploydokploy database:mongo:stop
dokploy database:mysql:createdokploy database:mysql:deletedokploy database:mysql:deploydokploy database:mysql:stop
dokploy database:postgres:createdokploy database:postgres:deletedokploy database:postgres:deploydokploy database:postgres:stop
dokploy database:redis:createdokploy database:redis:deletedokploy database:redis:deploydokploy database:redis:stop
For more information about a specific command, use:
$ dokploy [COMMAND] --helpIf you want to contribute to Dokploy CLI, please check out our Contributing Guide.
If you encounter any issues or have any questions, please open an issue in our GitHub repository.
This project is licensed under the MIT License.