Skip to content

Authentication

sup CLI supports multiple authentication methods for connecting to Superset and Preset workspaces.

Get your API credentials from Preset Settings.

Terminal window
export PRESET_API_TOKEN="your-token"
export PRESET_API_SECRET="your-secret"

For advanced users with JWT access:

Terminal window
export PRESET_JWT_TOKEN="your-jwt-token"
Terminal window
export SUPERSET_URL="https://your-superset.com"
export SUPERSET_USERNAME="admin"
export SUPERSET_PASSWORD="password"

If you have an existing session:

Terminal window
export SUPERSET_SESSION_TOKEN="session-token"

sup can store credentials securely:

Terminal window
# Store credentials
sup auth login
# Clear stored credentials
sup auth logout

Verify your authentication:

Terminal window
sup workspace list

If authentication is successful, you’ll see your available workspaces.