Socket
Book a DemoInstallSign in
Socket

@lightdash/cli

Package Overview
Dependencies
Maintainers
5
Versions
4077
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightdash/cli

Lightdash CLI tool

0.1985.1
latest
npmnpm
Version published
Weekly downloads
13K
12.31%
Maintainers
5
Weekly downloads
 
Created
Source

Lightdash CLI

Lightash CLI tool

How to install

npm i -g @lightdash/cli

Usage

Usage: lightdash [options] [command]

Options:
  -h, --help      display help for command

Commands:
  version         output the version number
  [dbt_command]   runs dbt
  help [command]  display help for command

eg: ligthdash test Runs dbt test

Development

First build the package

pnpm cli-build

Then run the cli commands with node and pointing to the dist/index.js file

Examples from lightdash root folder

Lightdash login

node ./packages/cli/dist/index.js login http://localhost:3000

Lightdash compile

node ./packages/cli/dist/index.js compile --project-dir ./examples/full-jaffle-shop-demo/dbt --profiles-dir ./examples/full-jaffle-shop-demo/profiles

Lightdash generate

node ./packages/cli/dist/index.js generate --project-dir ./examples/full-jaffle-shop-demo/dbt --profiles-dir ./examples/full-jaffle-shop-demo/profiles

Lightdash preview

node ./packages/cli/dist/index.js preview --project-dir ./examples/full-jaffle-shop-demo/dbt --profiles-dir ./examples/full-jaffle-shop-demo/profiles

Lightdash run

node ./packages/cli/dist/index.js dbt run --project-dir ./examples/full-jaffle-shop-demo/dbt --profiles-dir ./examples/full-jaffle-shop-demo/profiles -s

Testing different dbt versions

If you want to test different dbt versions, you can replace the string dbt in the "execa" calls in the package with dbt${YOUR_VERSION}, eg: dbt1.8.

FAQs

Package last updated on 05 Sep 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.