Skip to content

CLI ​

duploy --help and duploy <command> --help are always the most current reference. This page groups the commands by what they act on.

Global flags ​

FlagEnvEffect
-o, --org <org>DUPLOY_ORGOrg slug, name or id
-p, --project <project>DUPLOY_PROJECTProject name or id
--profile <name>DUPLOY_PROFILECredential profile
--jsonRaw API JSON on stdout
-q, --quietIds and status only
--wideDo not truncate tables
-v, --verboseMore output

Context comes from the flags, then the nearest .duploy file, then duploy use. Credentials live in ~/.config/duploy/credentials.toml.

Account and context ​

CommandDoes
login [--no-browser]Sign in through the browser
logoutSign out and delete the profile
whoamiWho you are and your memberships
use [org[/project]]Select the context; no argument shows it
link <project> / unlinkBind this directory to a project
orgs, projectsList
project ingressSlug, CNAME target and edge addresses for DNS
tokens, token create <name> [--expires-days n], token rm <id|name>Access tokens
audit [--limit n] [--before seq]Your security log

Config ​

CommandDoes
config showPrint the project's duploy.toml
config edit [-f file|-] [-m message] [-y]Edit with a diff and confirmation
config syncRe-read the file from the repository
config source --repo owner/name --branch b --path pLink the config to a repository; --unlink

Services, builds and deploys ​

CommandDoes
services, service <s>List, details
service stop|start|restart <s> [--instance id]Lifecycle
service exec <s> [--instance id] -- <cmd>Run a command in an instance
build [s], builds, build cancel|rm <id>Builds
deploy [s], deploys, deploy cancel <id>Deploys
rollback <deploy-id> [-y]Redeploy a past image and config
env <s>Variable names and kinds, never values
secret set <s> K=V… / secret set <s> -Write secrets; - reads a .env from stdin
secret rm <s> K…Remove secret values

Databases ​

CommandDoes
dbs, db <d>List, details
db creds <d>Credentials
db connect <d> [-- args]psql / mysql / redis-cli through a tunnel
db stop|start|restart <d>Lifecycle
db upgrade-image <d>Move to the current platform image
db backup <d>, db backups <d>, db backup rm <id>Backups
db restore <d> --backup <id> | --at <RFC3339> [--timeline n]Restore in place
db timelines <d>Postgres timelines
db import <d> <file> [-y]Replace the database with a dump

Cron, volumes and domains ​

CommandDoes
run <s>, runs [--service s], run cancel <id>Cron runs
volumesVolumes, orphans included
volume backup|backups|rm <name> [--service s]Volume operations
volume restore <name> <backup-id> [-y]Restore in place
domains, domain verify <host>Domains, TLS and ownership

Observing ​

CommandDoes
logs <s> [-f] [--tail n] [--instance id]Container log
logs --deploy|--build|--run|--backup|--restore <id>Job log
logs --db <d>Database log
metrics [s] [--db d] [--range 1h|24h|7d|30d]CPU, memory, network
usageTraffic this month and the last 24 hours
events [--kind k]Live event stream
until <event,…> [--service|--db|--deploy|--build|--sha|--host] [--timeout]Wait for an event

Tunnels ​

CommandDoes
tunnel db:<d> [-l 127.0.0.1:PORT]Local port to a database
tunnel svc:<s>[:port] [-l 127.0.0.1:PORT]Local port to a service instance

Tunnels run over the control plane; nothing in the project is exposed to the internet. Idle tunnels close after an hour.

Tools ​

CommandDoes
versionCLI and panel versions
completions <fish|zsh|bash> [--install]Shell completion

Duploy — our nodes, your file.