title: 'login' sidebar_label: 'login' pagination_prev: null pagination_next: null tags:
Login to the Spice.ai Platform, or other services with sub-commands.
-h, --help Print this help message-k, --key string API key (for spice.ai)abfs Login to a Azure Storage Accountdatabricks Login to a Databricks instancedelta-lake Configure credentials to access a Delta Lake tabledremio Login to a Dremio instancepostgres Login to a Postgres instances3 Login to an s3 storagesharepoint Login to a Microsoft 365 sharepoint accountsnowflake Login to a Snowflake warehousespark Login to a Spark Connect remotespice cloud loginAuthenticate with the Spice Cloud Platform. Running spice cloud login without a subcommand opens an interactive method chooser when stdin is a TTY. Non-interactive callers must specify a method explicitly.
spice cloud login subscriptionBrowser-based OAuth login flow. Automatically opens a browser for authentication.
Use --device to print the URL and one-time code without opening a browser (useful for SSH/headless environments):
spice cloud login patAuthenticate with a personal access token.
The token can also be provided via the SPICE_CLOUD_PAT environment variable:
spice cloud login apiAuthenticate using OAuth2 client credentials for CI/automation workflows.
Credentials can also be provided via environment variables:
| Variable | Used by | Description |
|---|---|---|
SPICE_CLOUD_PAT | login pat | Personal access token |
SPICE_CLOUD_CLIENT_ID | login api | OAuth2 client ID |
SPICE_CLOUD_CLIENT_SECRET | login api | OAuth2 client secret |