Install the CLI
The pda command-line tool sets up and maintains Polaris projects: it creates the project folder, syncs table docs, runs tests, deploys context, and can run Polaris locally.
Requirements
Section titled “Requirements”- Python 3.11 or newer.
- uv.
- A checkout of the Polaris repository.
Install
Section titled “Install”From the root of the Polaris repository:
uv venv .venvsource .venv/bin/activateuv pip install './cli[aws-secrets]'The aws-secrets extra adds the AWS SDK, which the Amazon Bedrock model provider and {{ aws('...') }} secret references need.
To work on the CLI itself, install it in editable mode:
uv pip install -e './cli[aws-secrets]'Check the install:
pda --versionpda --helpExtras
Section titled “Extras”Add the extras for the databases and features you use, separated by commas:
uv pip install './cli[aws-secrets,duckdb,snowflake]'| Group | Extras |
|---|---|
| Databases | athena, bigquery, clickhouse, databricks, duckdb, fabric, mssql, mysql, postgres, redshift, snowflake, starrocks, trino |
| Model providers | anthropic, gemini, mistral, ollama, openai |
| Document sources | notion, confluence |
| Semantic layer | semantic-layer |
| Secret backends | aws-secrets, k8s-secrets |
| Bundles | all-databases, all-llms, all |
pda init installs missing extras for the databases and providers you configure.
Amazon Bedrock credentials
Section titled “Amazon Bedrock credentials”The CLI uses your normal AWS credentials to call Bedrock models, for pda debug, AI table summaries and pda chat. Sign in with AWS first and pass the profile:
AWS_PROFILE=<your-profile> pda debugThe profile needs permission to invoke Bedrock models.
Run Polaris locally
Section titled “Run Polaris locally”pda chat runs the full Polaris web app on your machine. It needs the bundled server, which is built from the repository with cli/build.py. The other commands do not need it.
Turn off usage analytics
Section titled “Turn off usage analytics”The CLI sends anonymous command usage events. Set POSTHOG_DISABLED=true to turn them off.
Next steps
Section titled “Next steps”- Create a project with
pda init. - Read the full command reference.