Skip to content

Configuration

The config command manages persistent enumctl settings stored locally on your machine.

Terminal window
enumctl config get organization

Prints the currently configured default organization ID. Project list and select use this as the default --org-id filter when you do not pass one.

Terminal window
enumctl config set organization <org-id>

Sets the default organization. You can also pick one interactively:

Terminal window
enumctl organizations select

enumctl init saves the organization you choose during setup.

Terminal window
enumctl config unset organization
Terminal window
enumctl config get project

Prints the currently configured default project ID. This is the project used by all commands when --project-id is not specified.

Terminal window
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:

Terminal window
enumctl projects list
Terminal window
enumctl config unset project

Removes the default project setting. After this, commands that require a project will need the --project-id flag.

You can override the configured defaults on any command:

Terminal window
enumctl kubernetes list --project-id <other-project-id>
enumctl projects list --org-id <other-org-id>

organization also accepts the alias org:

Terminal window
enumctl config set org <org-id>
enumctl config get org