Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bonnard/cli

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonnard/cli

The Bonnard CLI (`bon`) takes you from zero to a deployed semantic layer in minutes. Define metrics in YAML, validate locally, deploy, and query — from your terminal or AI coding agent.

Source
npmnpm
Version
0.2.11
Version published
Weekly downloads
25
-64.79%
Maintainers
1
Weekly downloads
 
Created
Source

@bonnard/cli

The Bonnard CLI (bon) takes you from zero to a deployed semantic layer in minutes. Define metrics in YAML, validate locally, deploy, and query — from your terminal or AI coding agent.

Open sourceview source on GitHub

Quick start

npx @bonnard/cli init           # Create project structure + agent templates
bon datasource add --demo       # Add demo dataset (no warehouse needed)
bon validate                    # Check syntax
bon login                       # Authenticate with Bonnard
bon deploy -m "Initial deploy"  # Deploy to Bonnard

No install needed — npx runs the CLI directly. Or install globally for shorter commands:

npm install -g @bonnard/cli

Requires Node.js 20+.

Commands

CommandDescription
bon initCreate project structure and AI agent templates
bon loginAuthenticate with Bonnard
bon logoutRemove stored credentials
bon whoamiShow current login status
bon datasource addAdd a data source (interactive)
bon datasource add --demoAdd read-only demo dataset
bon datasource add --from-dbtImport from dbt profiles
bon datasource listList configured data sources
bon datasource remove <name>Remove a data source
bon validateValidate cube and view YAML
bon deploy -m "message"Deploy to Bonnard
bon deploymentsList deployment history
bon diff <id>View changes in a deployment
bon annotate <id>Add context to deployment changes
bon query '{"measures":["orders.count"]}'Query the semantic layer (JSON)
bon query "SELECT ..." --sqlQuery the semantic layer (SQL)
bon mcpMCP setup instructions for AI agents
bon mcp testTest MCP server connectivity
bon docs [topic]Browse modeling documentation
bon docs --search "joins"Search documentation

Agent-ready from the start

bon init generates context files for your AI coding tools:

  • Claude Code.claude/rules/ + get-started skill
  • Cursor.cursor/rules/ with auto-apply frontmatter
  • CodexAGENTS.md + skills folder

Your agent understands Bonnard's modeling language from the first prompt.

Project structure

After bon init:

my-project/
├── bon.yaml              # Project configuration
├── bonnard/
│   ├── cubes/            # Cube definitions (measures, dimensions, joins)
│   └── views/            # View definitions (curated query interfaces)
└── .bon/                 # Local config (gitignored)
    └── datasources.yaml  # Data source credentials

CI/CD

bon deploy --ci -m "CI deploy"

Non-interactive mode for pipelines. Datasources are synced automatically.

Documentation

FAQs

Package last updated on 18 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts