Configuration
The config command manages persistent enumctl settings stored locally on your machine. Settings belong to the profile in use, which is default unless you create others.
List settings
Section titled “List settings”enumctl config listPrints the profile in use with its user, organization, and project.
Default organization
Section titled “Default organization”Get the default organization
Section titled “Get the default organization”enumctl config get organizationPrints the currently configured default organization ID. Project list and select use this as the default --org-id filter when you do not pass one.
Set the default organization
Section titled “Set the default organization”enumctl config set organization <org-id>Sets the default organization. You can also pick one interactively:
enumctl organizations selectenumctl init saves the organization you choose during setup.
Unset the default organization
Section titled “Unset the default organization”enumctl config unset organizationDefault project
Section titled “Default project”Get the default project
Section titled “Get the default project”enumctl config get projectPrints the currently configured default project ID. This is the project used by all commands when --project-id is not specified.
Set the default project
Section titled “Set the default project”enumctl config set project <project-id>Sets the default project. All subsequent commands will use this project unless overridden with --project-id.
To find your project ID:
enumctl projects listUnset the default project
Section titled “Unset the default project”enumctl config unset projectRemoves the default project setting. After this, commands that require a project will need the --project-id flag.
Get the user
Section titled “Get the user”enumctl config get userSet the user
Section titled “Set the user”enumctl config set user you@example.comPoints the profile at a user you are already logged in as with enumctl auth login. Switching to a different user unsets the profile’s organization and project.
Unset the user
Section titled “Unset the user”enumctl config unset userThe profile stays logged out until you set a user or log in again. Its organization and project are unset as well.
Overriding defaults
Section titled “Overriding defaults”You can override the configured defaults on any command:
enumctl kubernetes list --project-id <other-project-id>enumctl projects list --org-id <other-org-id>enumctl kubernetes list --profile workorganization also accepts the alias org:
enumctl config set org <org-id>enumctl config get org