porter target contains commands for managing deployment targets.
Prerequisites
- You’ve logged in to the Porter CLI after running porter auth login
- You’re connected to the correct project by running porter config set-project
- You’re connected to the correct cluster by running porter config set-cluster
porter target list
List all deployment targets in the current cluster.
Usage:
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:
Create Target
porter target delete
Delete a deployment target from the current cluster. Works for both standard and preview environment targets.
Usage:
Using Targets with Deployments
Specify a target when deploying withporter apply:
Related Commands
- porter apply - Deploy to a specific target
- porter app list - List apps in the current target

