@duckcodeailabs/dql-cli
v0.8.5
Published
Public CLI for parsing, formatting, testing, and certifying DQL blocks
Readme
@duckcodeailabs/dql-cli
Official command-line interface for DQL.
Use the CLI to scaffold projects, validate blocks, preview charts locally, and build static bundles without DuckCode Studio.
Install
For local preview with file/DuckDB-backed starter data, use Node 18, 20, or 22 LTS. If you change Node versions after installing dependencies, rerun pnpm install so native modules are rebuilt for the active runtime.
npm install -g @duckcodeailabs/dql-cliOr run it without a global install:
npx @duckcodeailabs/dql-cli --helpFrom this repo, you can also run:
pnpm exec dql --helpQuick Start
These commands assume dql is installed globally. From a source checkout, use pnpm exec dql from the repo root or ../node_modules/.bin/dql from the generated project.
dql init my-dql-project
cd my-dql-project
dql new block "Pipeline Health"
dql new semantic-block "ARR Growth"
dql new dashboard "Revenue Overview"
dql doctor
dql preview blocks/pipeline_health.dql --openCore Commands
dql init [directory]— create a starter DQL projectdql new block <name>— scaffold a new DQL block in the current projectdql new semantic-block <name>— scaffold a semantic block plus companion YAML filesdql new dashboard <name>— scaffold a new dashboard indashboards/dql new workbook <name>— scaffold a new workbook inworkbooks/dql doctor [path]— check local setup, config, and starter foldersdql parse <file.dql>— parse and validate a DQL blockdql fmt <file.dql>— format a DQL filedql test <file.dql>— run DQL assertionsdql certify <file.dql>— run certification checksdql preview <file.dql>— preview a block in the browserdql build <file.dql>— build a static bundle indist/dql serve [directory]— serve a built bundle locally
Learn More
- Root docs:
../../README.md - Getting started:
../../docs/getting-started.md - CLI reference:
../../docs/cli-reference.md - Project config:
../../docs/project-config.md
