Skip to main content

CLI

Complete reference for Strata CLI commands.

Overview

The Strata CLI provides commands for managing semantic models, datasources, and deployments. Commands follow: strata [COMMAND] [SUBCOMMAND] [OPTIONS]

Behind the scenes

The CLI works on the same YAML that the semantic model reference describes. It manages semantic model assets (datasources, tables, relationships, migrations) and deploys them to a Strata server. To understand the concepts (semantic layer, tables, relationships, datasources), see Core Concepts and Semantic Model.

Commands

Project Management

CommandDescriptionAction
initInitialize a new Strata projectRead more
strata project link PROJECT_IDLink local project to server projectRead more

Datasource Management

CommandDescriptionAction
datasourceAdd, list, auth, test, tables, meta, execRead more
strata datasource adaptersList supported adaptersRead more
strata datasource checkCheck which adapter gems are installedRead more
strata datasource addAdd a new datasourceRead more
strata datasource listList configured datasourcesRead more
strata datasource authSet credentialsRead more
strata datasource testTest connectionRead more
strata datasource tablesList tables in a datasourceRead more
strata datasource metaShow table schema/structureRead more
strata datasource execRun SQL on a datasourceRead more

A datasource is a configured connection to a database used by the semantic model. For configuration, tiers (hot/warm/cold), and YAML structure, see Datasources.

Model Creation

CommandDescriptionRead more
create tableCreate a semantic table modelCreating TablesTables
create relationCreate a relationship fileRelationshipsRelationships
create migration renameCreate rename migrationMigrations
create migration swapCreate swap migrationMigrations

Table Management

CommandDescriptionRead more
table listList semantic table modelsCreating TablesTables

Deployment

CommandDescriptionAction
deployDeploy project to serverRead more
deploy statusCheck deployment statusRead more

Audit & Validation

CommandDescriptionAction
auditRun validation checks (syntax, models, connections)Read more

Utilities

  • version - Print CLI version
  • adapters - List supported adapters → Adapters

Getting Help

strata COMMAND --help
strata COMMAND SUBCOMMAND --help

Next Steps