Skip to main content
porter target contains commands for managing deployment targets.

Prerequisites


porter target list

List all deployment targets in the current cluster. Usage:
porter target list [flags]
Options:
FlagDescription
--previewInclude preview environment targets
porter target list
Deployment targets allow you to deploy the same application to different environments (production, staging, preview) within the same cluster.

Using Targets with Deployments

Specify a target when deploying with porter apply:
porter apply -f porter.yaml --target staging
Preview environment targets are automatically created when you set up preview environments. See Preview Environments for more details.