Skip to content

CLI missing compose, mount, and domain commands — deploy without GitHub? #33

@frankdierolf

Description

@frankdierolf

Context

I'm building an AI agent skill that wraps the Dokploy CLI to deploy apps. The idea: the agent scaffolds a Vue SPA + PocketBase app, then deploys it to Dokploy — all without needing a GitHub repo.

The Dokploy web UI and tRPC API support this workflow perfectly via sourceType: "raw" composes + file mounts. But the CLI is missing the commands to do it.

What's missing from the CLI

Operation Web UI / API CLI
Create compose compose.create Missing
Update compose YAML compose.update (sourceType: "raw") Missing
Deploy compose compose.deploy Missing
Create file mounts mounts.create Missing
Create domains domain.create Missing

The CLI currently covers projects, apps, databases, and env vars — but not the compose/mount/domain lifecycle.

Why this matters

Right now, deploying a raw compose (no GitHub) requires falling back to curl with tRPC endpoints. This works, but:

  • The CLI has --help and discoverability — agents (and humans) can explore capabilities
  • curl with tRPC is fragile and undocumented
  • The compose + mount + domain flow is the most common deployment pattern for self-hosted apps

What I'd love to see

dokploy compose:create --name "my-app" --project-uuid $PROJECT_UUID --environment-uuid $ENV_UUID
dokploy compose:update --compose-uuid $ID --source-type raw --file docker-compose.yml
dokploy compose:deploy --compose-uuid $ID
dokploy mount:create --compose-uuid $ID --type file --file-path "index.html" --content "..." 
dokploy domain:create --compose-uuid $ID --host "app.example.com" --port 8080 --https --letsencrypt

Happy to contribute

If this direction makes sense, I'd be glad to submit a PR adding these commands. The tRPC endpoints already exist — the CLI just needs to wrap them.

Using Dokploy CLI v0.2.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions