Quick Start
Login to Porter
Authenticate with your Porter account:This opens your browser to complete authentication and automatically configures your default project and cluster.
Verify Configuration
Deploy Your App
Project and Cluster Configuration
After logging in, you may need to switch between projects or clusters.List Available Projects
Set Active Project
List Available Clusters
Set Active Cluster
View Current Configuration
Global Flags
These flags can be used with any Porter command:| Flag | Description |
|---|---|
--project <id> | Override the project ID for this command |
--cluster <id> | Override the cluster ID for this command |
--token <string> | Use a specific authentication token |
-h, --help | Display help for the command |
Credential Storage
Afterporter auth login, your session tokens are stored in your operating system’s secure credential store (macOS Keychain, Windows Credential Manager, GNOME Secret Service, or KWallet) rather than in porter.yaml. Tokens are automatically migrated from any older porter.yaml on your first run after upgrading.
For details on headless environments and the PORTER_KEYRING_PASSWORD fallback, see porter config.
Environment Variables
Environment variables provide an alternative way to configure the CLI, which is especially useful in CI/CD pipelines.| Variable | Description | Equivalent Flag |
|---|---|---|
PORTER_PROJECT | Project ID to use | --project |
PORTER_CLUSTER | Cluster ID to use | --cluster |
PORTER_TOKEN | Authentication token | --token |
PORTER_HOST | Custom Porter API host | --host |
PORTER_APP_NAME | Default app name for commands | --app |
PORTER_KEYRING_PASSWORD | Password for the encrypted keyring file used in headless environments | — |
Environment variables take precedence over values in your config file, but flags take precedence over environment variables.
Example: CI/CD Configuration
Common Workflows
Local Development
CI/CD Deployment
Managing Environment Variables
Debugging
Viewing Help
You can view help instructions for any command using the-h or --help flag:
Next Steps
- Learn about configuration-as-code with
porter.yaml - Explore the full command reference for detailed options
- Set up CI/CD deployment for automated deployments

