Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@dataform/cli

Latest version: v3.1.7

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: benbirt, dataform-npm, ekrekr, lewish, mtauseeq
17 Versions
534.8K Downloads

Scan summary

@dataform/cli was last scanned on 23 Nov 2026 at version 3.1.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 3 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 3.1.7.
  • Downloads: 534,803 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.1.7 LATEST 23 Nov 2026 No rules fired
3.1.6-alpha.1 20 Nov 2026 No rules fired
3.1.6 20 Nov 2026 No rules fired
3.1.6-alpha.0 12 Nov 2026 Not shown
3.1.5 10 Nov 2026 Not shown

No rules fired in 3.1.7

Findings

Findings for v3.1.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.1.7; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Dataform CLI Reference

This document is a complete reference for the dataform command line interface. The command list, usage lines and argument/option tables are generated from the CLI source in this repository (cli/), so they match dataform help. It also covers practical example use cases.

For conceptual documentation (project structure, SQLX syntax, the JavaScript API, etc.) see the root readme and the hosted Dataform CLI guide.

Installation

npm i -g @dataform/cli

Invocation

dataform <command> [project-dir] [options]

project-dir is optional for every command and defaults to . (the current directory). It is resolved with tilde-expansion, so ~/my-project works. project-dir can be passed either positionally (dataform compile my-project) or as a named flag (dataform compile --project-dir=my-project).

Run dataform with no arguments, or dataform help, to print the list of commands. Run dataform help <command> or dataform <command> --help for a command's full flag list.

Global behavior

  • --help — shows help for the current command.
  • --version — prints the installed @dataform/cli version number.
  • Strict parsing — unknown commands or flags are rejected with an error, and the CLI suggests the closest matching command name for typos.
  • Colored output — output is colorized by default. Set NO_COLOR=1 (or true/yes) to disable it.
  • Lineage debug logging — set DATAFORM_LINEAGE_DEBUG=1 to enable verbose logging from the OpenLineage emitter used by run --emit-lineage.

Commands

  • init
  • install
  • init-creds
  • compile
  • test
  • run
  • format

init
dataform init [project-dir] [default-database] [default-location]

Creates a new Dataform project (workflow_settings.yaml, .gitignore, definitions/, and includes/) in project-dir. Fails if workflow_settings.yaml, package.json, or dataform.json already exists in project-dir.

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.
default-database Yes The default database to use, equivalent to Google Cloud Project ID.
default-location No The default location to use (optional). If omitted, `defaultLocation` is not written to `workflow_settings.yaml` and the `location` from `.df-credentials.json` is used instead; if that is also unset, BigQuery chooses the location dynamically. See https://cloud.google.com/bigquery/docs/locations for supported values.

project-dir is the directory to create the project in. All three positional arguments can also be passed as named flags (--project-dir, --default-database, --default-location), e.g. dataform init my_project --default-database=my-gcp-project-id --default-location=US.

Options

Flag Type Default Description
--iceberg boolean false Initialize the project with workflow-level Iceberg tables configuration.

When --iceberg is set, init prompts interactively for an Iceberg bucket name, table folder root/subpath, and connection.


install
dataform install [project-dir]

Installs a project's NPM dependencies (via npm i --ignore-scripts) as declared in the project's package.json.

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.

Options

None.

Note: for projects that specify dataformCoreVersion in workflow_settings.yaml, @dataform/core is installed automatically in an isolated temporary directory at compile/run time, and running dataform install throws an error (No installation is needed when using workflow_settings.yaml, as packages are installed at runtime.). Use dataform install only when managing @dataform/core and external dependencies via package.json (without dataformCoreVersion in workflow_settings.yaml).


init-creds
dataform init-creds [project-dir]

Interactively creates a .df-credentials.json file in project-dir that Dataform uses to connect to BigQuery. Only BigQuery is currently supported.

Prompts for:

  1. Dataset location (US, EU, a custom region name, or auto). Choosing auto leaves location out of the credentials file so BigQuery chooses the location dynamically.
  2. Authentication method — Application Default Credentials (ADC) or a JSON service account key file.
    • ADC: prompts for your billing project ID.
    • JSON key: prompts for the path to a downloaded service account key file.
  3. A service account to impersonate (optional, press Enter to skip). It's saved as impersonateServiceAccount, see Credentials file.

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.

Options

Flag Type Default Description
--test-connection boolean true If true, a test query will be run using your final credentials.

compile
dataform compile [project-dir]

Compiles the project and prints a summary (or JSON / Graphviz DOT / Mermaid representation) of the compiled dependency graph without executing it against your warehouse. Useful for validating a project and inspecting its structure.

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.

Options

Flag Type Default Description
--json boolean false Outputs the result as JSON instead of human-readable text.
--dot boolean false Outputs a Graphviz DOT representation of the compiled project. Mutually exclusive with --json and --mermaid.
--mermaid boolean false Outputs a Mermaid flowchart representation of the compiled project. Mutually exclusive with --json and --dot.
--verbose boolean false Enables verbose compilation output. Mutually exclusive with --quiet.
--quiet boolean false Less verbose compilation output. Mutually exclusive with --verbose.
--watch boolean false Watches the project directory and recompiles on changes.
--timeout string '60s' Duration to allow project compilation to complete, e.g. '1s', '10m'.
--output-actions array — Filters the printed output to these actions (comma-separated or repeatable). Each entry is an action name or a fully-qualified database.schema.name target. The whole project is still compiled.
--output-tags array — Filters the printed output to actions with any of these tags (comma-separated or repeatable).
--output-include-deps boolean — Also includes upstream dependencies of the selected actions in the output. Requires --output-actions or --output-tags.
--output-include-dependents boolean — Also includes downstream dependents of the selected actions in the output. Requires --output-actions or --output-tags.
Project-config overrides — — See Shared project-config flags.

Notes

  • --json outputs the compiled graph and can't be combined with --dot or --mermaid.
  • --mermaid prints a Mermaid flowchart (using the widely supported graph keyword), which GitHub, GitLab and other Mermaid-enabled documentation tools render natively. To render it in Markdown, wrap the output in a mermaid code fence. Mermaid limits diagram size by default (500 edges and 50,000 characters; renderers can change these, and GitHub refuses diagrams over 50,000 characters), so for large projects use --output-actions / --output-tags to print part of the graph. A warning is printed to stderr when the diagram exceeds these limits. With --watch, each recompilation prints a new diagram (plus status messages), so the output isn't a single Mermaid document.
  • --watch ignores node_modules, recompiles with a debounce of 500ms, and runs until interrupted with Ctrl+C.
  • --output-actions, --output-tags, --output-include-deps and --output-include-dependents only prune what's printed; the whole project still compiles. --output-actions entries are matched exactly (no * wildcard expansion).

test
dataform test [project-dir]

Compiles the project and runs its unit tests (type: "test" actions) against BigQuery.

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.

Options

Flag Type Default Description
--credentials string .df-credentials.json Path to the credentials JSON file to use.
--timeout string '60s' Duration to allow project compilation to complete, e.g. '1s', '10m'.
--json boolean false Outputs the result as JSON instead of human-readable text.
Project-config overrides — — See Shared project-config flags.

--json outputs the test results as JSON.

Exits with code 1 if any test fails, if the project fails to compile, or if no unit tests are found. Exits 0 if all tests pass.


run
dataform run [project-dir]

Compiles and executes the project against BigQuery (or validates it with --dry-run).

Positional arguments

Argument Required Description
project-dir No (default .) The Dataform project directory.

Options

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @dataform/cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229