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:
Options:
Deployment targets allow you to deploy the same application to different environments (production, staging, preview) within the same cluster.

porter target create

Create a new deployment target in the current cluster. Usage:
Options:
Create Target
On success, the command prints the new target’s ID:

porter target delete

Delete a deployment target from the current cluster. Works for both standard and preview environment targets. Usage:
Options:
The default deployment target for a cluster can’t be deleted. Attempting to delete it returns an error.

Using Targets with Deployments

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