Command Line Interface (CLI)
Basic Usage
To set up and authenticate with the CLI, run the following command:
This command will automatically set a project ID and a cluster ID in your default configuration file, if you have a project and cluster. You can always view your default configuration by running porter config
. You can see all projects that you have access to by running:
And you can set a project via:
Next, you can see all clusters that you have access to via:
And similarly, you can set the cluster:
Environment Variables and Global Flags
The following environment variables can be set in order to authenticate to and target a specific Porter project or cluster:
These are also supported as global flags:
Viewing Help Instructions
You can view help instructions for any command via the -h
, or --help
flag. For example: