We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.
Learn more.

CLI ReferenceProfiles

Profiles

The Hatchet CLI supports managing multiple Hatchet instances and tenants using named profiles. This feature makes it easy to switch between different environments, such as development, staging, and production.

Creating a Profile

You can create a new profile using the hatchet profile add command. You will need to provide a Hatchet API token for the profile.

hatchet profile add

This command will prompt you to enter the API token followed by the profile name. You can also provide these as flags:

hatchet profile add --name [name] --token [token]

Listing Profiles

You can list all the profiles you have configured using the hatchet profile list command:

hatchet profile list

Using a Profile

To use a specific profile for your Hatchet CLI commands, you can specify the profile name using the --profile flag. For example:

hatchet worker dev --profile [name]

Updating a Profile

You can update an existing profile using the hatchet profile update command. This allows you to change the API token associated with a profile.

hatchet profile update

Deleting a Profile

You can delete a profile using the hatchet profile delete command:

hatchet profile delete