Skip to content

CLI overview ​

text
portler setup [docker] [service...] [--prod]
portler start [service] [--prod] [--drain-ms <ms>]
portler up [service...] [--detach] [--prod] [--setup|--no-setup] [--volume-set <name>] [--image <service>=<image>]
portler up docker [service...] [--detach] [--prod] [--setup|--no-setup] [--volume-set <name>] [--image <service>=<image>]
portler up k8s [service...] [--detach] [--image <service>=<image>]
portler down [docker|k8s] [service...] [--volumes] [--force]
portler k8s render [service...]
portler restart [docker] [service...] [--prod] [--setup|--no-setup] [--image <service>=<image>] [--volume-set <name>]
portler ps [service...]
portler logs [service...] [-f|--follow]
portler ports
portler env [docker|k8s] [service] [--prod] [--reveal]
portler clean [--ports] [--global] [--force]
portler volumes [list] [--prod]
portler volumes fork <volume> <new-set> [--prod]
portler volumes remove <volume> [--force] [--prod]
portler init

Global options ​

FlagDescription
-f, --file <path>Use a specific portler.yml file (for logs, -f means --follow; use --file there)
-h, --helpShow help

Command options ​

FlagApplies toDescription
--prodsetup, start, up, restart, env, volumesUse production overrides (not Kubernetes; restart refuses to change a running service's mode)
--setup / --no-setupup, restartForce / skip setup (not Kubernetes)
-d, --detachupStart services in the background
-f, --followlogsKeep streaming new output
--revealenvWith --prod, or for a service started with --prod, print secret-looking values instead of ***
--drain-ms <ms>startAfter the shell exits, wait up to <ms> for the rest of its process group (default 10000)
--image <service>=<image>up, restartRun that Docker service from this image instead of building it (repeatable)
--volumesdown k8sAlso delete the project's PersistentVolumeClaims
--portscleanOnly release this project's ports
--globalcleanPrune stale entries from the global registry
--forceclean, volumes remove, downStop running services first (or, with clean --global, reset a corrupt registry) / remove a volume in use / dangerous last resort: signal a pid down cannot identify (PID safety)
--volume-set <name>up, restart, volumesUse the <volume>--<name> variants of managed @ volumes (env fallback: PORTLER_VOLUME_SET)

Run modes ​

docker and k8s are reserved words selecting the Docker and Kubernetes run modes, and cannot be used as service names:

bash
portler up             # local mode (Docker only for services with Docker config)
portler up docker      # everything with Docker config runs in containers
portler up k8s         # everything runs in a local Kubernetes cluster

Commands ​

CommandDescription
portler setupRun installation/build/generation without starting services
portler startRun one foreground local process for deployment
portler upStart services (local, Docker, or Kubernetes mode)
portler downStop services started by Portler
portler restartRestart services in the background
portler psShow running services
portler logsShow captured output of detached services
portler portsShow assigned ports
portler envPrint resolved environment values
portler cleanRemove runtime files and release ports
portler volumesList, fork, and remove managed volumes
portler k8s renderGenerate Kubernetes manifests without applying
portler initWrite a starter portler.yml

Released under the MIT License.