Skip to content
GitLab

akili superset

Manage Apache Superset dashboard integration for data products. The Superset integration enables self-service analytics by automatically provisioning dashboards from data products that use the analytics serving intent.

Provision a new Superset dashboard for a data product. The platform creates a dataset in Superset backed by the product’s analytics serving store (StarRocks) and generates a starter dashboard.

Arguments:

ArgumentTypeRequiredDescription
productstringyesProduct name or ID

Examples:

Terminal window
# Provision a dashboard
akili superset provision daily-orders
# Output:
# Dashboard provisioned for 'daily-orders': status=provisioned
# URL: https://superset.akili.io/superset/dashboard/42/

Show the current Superset dashboard status for a product, including the dashboard URL and provisioning state.

Arguments:

ArgumentTypeRequiredDescription
productstringyesProduct name or ID

Examples:

Terminal window
# Check dashboard status
akili superset status daily-orders
# Show as JSON for CI/CD
akili superset status daily-orders --json

Generate a time-limited guest token for embedding a Superset dashboard in an external application. The token grants read-only access to the specific product’s dashboard and expires after a configurable duration.

Arguments:

ArgumentTypeRequiredDescription
productstringyesProduct name or ID

Flags:

FlagShortDefaultDescription
--user-idUser ID for the guest token (required)

Examples:

Terminal window
# Generate a guest token
akili superset guest-token daily-orders --user-id user-456
# Use in scripting (plain text token output)
TOKEN=$(akili superset guest-token daily-orders --user-id user-456)
# As JSON with expiry info
akili superset guest-token daily-orders --user-id user-456 --json

The token output includes the raw JWT token and its expiration time. In non-JSON mode, only the token string is printed to stdout (expiry goes to stderr), making it safe for shell variable capture.


Remove the Superset dashboard and dataset for a product. This is a destructive operation that requires the --confirm flag.

Arguments:

ArgumentTypeRequiredDescription
productstringyesProduct name or ID

Flags:

FlagShortDefaultDescription
--confirmfalseConfirm the destructive operation (required)

Examples:

Terminal window
# Attempt without confirmation (will fail)
akili superset deprovision daily-orders
# ERROR: Use --confirm to deprovision dashboard for 'daily-orders'
# Confirm deprovisioning
akili superset deprovision daily-orders --confirm

%%{init: {'flowchart': {'curve': 'basis'}}}%%
flowchart LR
    A[Product deployed with\nanalytics intent] --> B[akili superset provision]
    B --> C[Dashboard active]
    C --> D[Generate guest tokens\nfor embedding]
    C --> E[akili superset deprovision]
    E --> F[Dashboard removed]

All akili superset commands support these global flags:

FlagShortDefaultDescription
--jsonfalseOutput as JSON instead of tables
--profiledefaultConfig profile to use
--api-urlfrom configAPI base URL override
--timeout30Request timeout in seconds