The login command allows you to authenticate with your Storyblok account. It supports multiple login methods and regions.
storyblok loginThis will start an interactive login process where you can choose between:
- Email and password login
- Token login (Personal Access Token – recommended for CI and required for SSO users)
Go to [https://app.storyblok.com/#/me/account?tab=token] and click on Generate new token.
| Option | Description | Default |
|---|---|---|
-t, --token <token> |
Login directly with a token (useful for CI environments) | - |
-r, --region <region> |
Set the region to work with (must match your space's region) | eu |
- Login with email and password:
storyblok login- Login with a token:
storyblok login --token PERSONAL_ACCESS_TOKEN- Login with a token in a specific region:
storyblok login --token PERSONAL_ACCESS_TOKEN --region us- Credentials are stored securely in
~/.storyblok/credentials.json - The region setting will be used for all subsequent CLI commands
- If you're already logged in, you'll need to logout first to switch accounts
- For CI environments, it's recommended to use the
--tokenoption - The CLI supports two-factor authentication (2FA) when using email login
If you sign in with SSO (e.g., Google, GitHub, Azure AD), you must use a Personal Access Token. Generate one in your account settings: Generate token.
eu- Europeus- United Statescn- Chinaau- Australia