Databao docs

CLI reference

CLI commands and options for Databao

This page provides an overview of the Databao CLI commands and options.

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
initCreate a new Databao project.databao init
buildBuild context for all domain's data sources.
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]

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.

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-3-5-sonnet.
-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.

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

Examples:

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

app

Launch Databao in the browser.

databao app [OPTIONS] [STREAMLIT_ARGS]...

Examples:

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

On this page