MetricLayer CLI
Automate uploads, YAML generation, and linting. This CLI ships with the MetricLayer workspace and runs anywhere Node.js is available.
Install
Grab the CLI from npm and authenticate with your MetricLayer workspace token.
npm install -g @metriclayer/cli
Generate YAML
Parse Tableau workbooks and output MetricFlow YAML that drops into your repo.
metriclayer generate --input workbooks/sales.twb --out semantic_models/sales.yaml
Lint in CI
Catch naming drift, fan-out joins, and missing tests before merging pull requests.
metriclayer lint --config .metriclayerrc.yml