Auth¶
Manage authentication profiles. Profiles store API keys locally and let you switch between different RevenueCat accounts or environments without re-entering credentials.
Available Commands¶
| Command | Description |
|---|---|
rc auth login |
Create a new authentication profile |
rc auth switch |
Switch to a different profile |
rc auth list |
List all saved profiles |
rc auth current |
Show the currently active profile |
rc auth delete |
Delete a saved profile |
rc auth login¶
Create and activate a new authentication profile.
Required Flags¶
| Flag | Description |
|---|---|
--api-key |
Your RevenueCat secret API key (starts with sk_) |
--name |
A name for this profile |
Optional Flags¶
| Flag | Description |
|---|---|
--default-project |
Set a default project ID for this profile |
Examples¶
Note
API keys are stored in your system's credential store. They are never written to plain-text config files.
rc auth switch¶
Switch the active profile.
Required Flags¶
| Flag | Description |
|---|---|
--name |
The profile name to switch to |
rc auth list¶
List all saved authentication profiles.
Example Output¶
rc auth current¶
Display the currently active profile and its configuration.
Example Output¶
rc auth delete¶
Delete a saved authentication profile.
Required Flags¶
| Flag | Description |
|---|---|
--name |
The profile name to delete |
--confirm |
Skip confirmation prompt |
Warning
This permanently removes the profile and its stored API key. If this is the active profile, you will need to switch to another profile or create a new one.