Databao docs

CLI commands

Get familiar with CLI commands and options for Databao

Basic usage:

databao <command> [OPTIONS]

Global options

FlagDescription
-p, --project-dir PATHLocation of your Databao project. Default is the current working directory.

CLI commands

CommandDescriptionExample
statusDisplay project status and system-wide information.databao status
indexRe-index contexts without rebuilding them.databao index
initCreate a new Databao project.databao init
buildBuild context for all domain's data sources.databao build
askChat with the Databao agent.databao ask
appOpen the Databao app in the browser.databao app

status

Displays project status and system-wide information.

databao status [OPTIONS]

index

Update the semantic index for already-built contexts (derived from your data sources) without triggering a full rebuild.

You can use this command to update the semantic index of your data sources without going through the time- and resource-intensive rebuild process.

databao index [OPTIONS] [DATASOURCES_CONFIG_FILES]...
OptionDescription
-d, --domain TEXTDatabao domain name. Default is root.

By default, all contexts are re-indexed. To target specific data sources, provide one or more config file names.

Examples:

# Re-index all contexts in the default domain (root)
databao index

 # Re-index all contexts in a specific domain
databao index -d my_domain

# Re-index the specified data sources
databao index snowflake.yaml

Config file names must include the file extension, such as snowflake.yaml.

You can find data source config files at /domains/<domain_name>/src in your Databao project directory.


init

Create a new Databao project in the current directory or in the specified directory. It creates the project structure (.databao/domains/root, .databao/agents) and allows you to configure data sources interactively.

databao init [OPTIONS]

build

Build context for all domain's data sources. The output is saved in the domain's output directory.

databao build [OPTIONS]
OptionDescription
-d, --domain TEXTDatabao domain name. Default is "root".

ask

Chat with the Databao agent.

The command starts an interactive chat session with the Databao agent or executes a single query if --one-shot is provided.

databao ask [OPTIONS] [QUESTION]
OptionDescription
--one-shotExecute a single question and exit. Default is false. If not provided, inteactive mode is started.
-m, --model TEXTLLM model in the provider:name format. Examples: openai:gpt-4o, anthropic:claude-sonnet-4-5.
-t, --temperature FLOATTemperature in the 0.0-1.0 range. Default is 0.0.
--show-thinking / --no-show-thinkingDisplay reasoning/thinking output. Default is true.

Examples:

databao ask                                          # Interactive mode
databao ask --one-shot "What tables exist?"          # One-shot mode
databao ask --model anthropic:claude-sonnet-4-5      # Use custom model
databao ask --no-show-thinking                       # Hide reasoning

app

Launch Databao in the browser. You can initialize a new project, add data sources, build context, and create chats in the UI.

databao app [OPTIONS] [STREAMLIT_ARGS]...

Examples:

databao app
databao app --server.port 8502
databao app --server.headless true

On this page