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:
| Flag | Description |
|---|---|
--preview | Include preview environment targets |
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 withporter apply:
Related Commands
- porter apply - Deploy to a specific target
- porter app list - List apps in the current target

