TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/getployz/ployz/llms.txt
Use this file to discover all available pages before exploring further.
deploy command applies workload definitions to the cluster. It supports three modes: applying a manifest file, previewing a manifest without committing, or deploying a single service inline without a file. Every deploy operation has a bounded effect and returns a structured result.
When no subcommand is given,
deploy applies the manifest. Use deploy preview to inspect what would change before committing, especially in production.Apply a manifest (default)
Apply a deploy manifest to the cluster. The manifest is read from a file (or stdin if-f - is used) and the daemon validates, plans, and executes the deploy.
Path to the deploy manifest file. If omitted, the daemon looks for a default manifest in the current directory. Pass
-f - to read from stdin.Validate and plan the deploy without executing it. The daemon returns what would change, but no containers are started or stopped.
Sample deploy manifest
Deploy manifests are written in TOML. A minimal manifest for a single service looks like this:Subcommands
preview — preview a manifest without applying
preview — preview a manifest without applying
Compute what a deploy would do and return the plan without executing it. Useful for CI pipelines and code review workflows.The preview response includes the namespace, manifest hash, placement plan, service sources, image availability records, volume moves, and any warnings — without committing anything.
Path to the deploy manifest to preview. Behavior is the same as for the default apply action.
Dry-run flag. When combined with
preview, no state is read or computed beyond what is needed for validation.service — deploy a single service inline
service — deploy a single service inline
Deploy a single named service without a manifest file. All configuration is specified as command-line flags. This is useful for quick iterations, bootstrapping, and scripts that construct service definitions programmatically.Positional argumentsRequired flagsOptional flagsCommand overrideArguments after
The name of the service to deploy.
Container image reference for the service, e.g.
ghcr.io/myorg/app@sha256:abc123.The namespace to deploy the service into. Namespaces isolate workloads and are the unit of branching.
Publish a port. The format is
HOST:CONTAINER, e.g. -p 80:8080. Can be specified multiple times.Set an environment variable. The format is
KEY=VALUE, e.g. -e DATABASE_URL=postgres://.... Can be specified multiple times.Mount a volume. The format is
SRC:DST, e.g. -v mydata:/data. Can be specified multiple times.Network to attach the service to.
Force a fresh image pull before starting the container.
Container restart policy. Common values:
unless-stopped, always, on-failure, no.Validate and plan the service deploy without executing it.
-- are passed as the container command, overriding the image’s default CMD.