login
Login to the Spice.ai Platform, or other services with sub-commands.
Usage​
spice login [command] [flags]
Flags​
-h,--helpPrint this help message-k,--keystring API key (for spice.ai)
Available Commands​
abfsLogin to a Azure Storage AccountdatabricksLogin to a Databricks instancedelta_lakeConfigure credentials to access a Delta Lake tabledremioLogin to a Dremio instancepostgresLogin to a Postgres instances3Login to an s3 storagesharepointLogin to a Microsoft 365 sharepoint accountsnowflakeLogin to a Snowflake warehousesparkLogin to a Spark Connect remote
Examples​
spice login
Additional Example​
spice login --key <API_KEY>
spice cloud login​
Authenticate 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.
Methods​
spice cloud login subscription​
Browser-based OAuth login flow. Automatically opens a browser for authentication.
spice cloud login subscription
Use --device to print the URL and one-time code without opening a browser (useful for SSH/headless environments):
spice cloud login subscription --device
spice cloud login pat​
Authenticate with a personal access token.
spice cloud login pat --token <TOKEN>
The token can also be provided via the SPICE_CLOUD_PAT environment variable:
export SPICE_CLOUD_PAT=<TOKEN>
spice cloud login pat
spice cloud login api​
Authenticate using OAuth2 client credentials for CI/automation workflows.
spice cloud login api --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET>
Credentials can also be provided via environment variables:
export SPICE_CLOUD_CLIENT_ID=<CLIENT_ID>
export SPICE_CLOUD_CLIENT_SECRET=<CLIENT_SECRET>
spice cloud login api
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 |
