Profiles
A profile binds one user to a default organization and project. Most people only need the default profile that enumctl auth login and enumctl init set up. Add more when you work as different users, for example a personal user and a work user.
You can stay logged in as several users at once. Each profile points at one of them.
Create a profile
Section titled “Create a profile”enumctl profiles create workAsks which user the profile belongs to:
Select a user for profile work:> you@example.com you@company.com Log in with a new userChoosing Log in with a new user starts the login flow for the new profile. Either way, enumctl then asks for the profile’s default organization and project, the same way enumctl init does. The profile is only created once all three are chosen, so aborting leaves nothing behind.
To skip the prompts, pass a user you are already logged in as. The organization and project stay unset until you choose them:
enumctl profiles create work --user you@company.comWithout a user, for example in scripts, the profile is created logged out. Log in on it with enumctl --profile work auth login.
After the prompts, the new profile is selected. Profiles created with --user or without a terminal are not selected.
| Flag | Description |
|---|---|
--user | Logged-in user to bind to the profile |
Select a profile
Section titled “Select a profile”enumctl profiles select workSwitches to work for later commands. Without a name, pick one from a list.
Use a profile for one command
Section titled “Use a profile for one command”enumctl kubernetes list --profile workOr for the current shell:
export ENUMCTL_PROFILE=work--profile wins over ENUMCTL_PROFILE, which wins over the selected profile. To switch with the working directory, set ENUMCTL_PROFILE in a .envrc (direnv) at the project root.
List profiles
Section titled “List profiles”enumctl profiles listShows each profile with its user, organization, and project, and which one is selected. Alias: ls.
Get a profile
Section titled “Get a profile”enumctl profiles getenumctl profiles get workShows the profile in use when you omit the name.
Delete a profile
Section titled “Delete a profile”enumctl profiles delete workYou cannot delete the selected profile. Select another one first. Deleting a profile does not log out its user. Use --force to skip the confirmation prompt. Alias: rm.
Change a profile’s user
Section titled “Change a profile’s user”enumctl config and enumctl auth act on the profile in use:
enumctl --profile work config set user you@company.comenumctl --profile work auth loginconfig set user accepts only users you are logged in as. Changing the user either way clears the profile’s organization and project.