Scan your whole stack
Are you using @dataform/cli?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.1.7
@dataform/cli was last scanned on 23 Nov 2026 at version 3.1.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
npm i -g @dataform/cli
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.
--help — shows help for the current command.--version — prints the installed @dataform/cli version number.NO_COLOR=1 (or true/yes) to disable it.DATAFORM_LINEAGE_DEBUG=1 to enable verbose logging from the OpenLineage emitter used by run --emit-lineage.initinstallinit-credscompiletestrunformatinitdataform 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.
installdataform 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
dataformCoreVersioninworkflow_settings.yaml,@dataform/coreis installed automatically in an isolated temporary directory at compile/run time, and runningdataform installthrows an error (No installation is needed when using workflow_settings.yaml, as packages are installed at runtime.). Usedataform installonly when managing@dataform/coreand external dependencies viapackage.json(withoutdataformCoreVersioninworkflow_settings.yaml).
init-credsdataform 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:
US, EU, a custom region name, or auto). Choosing auto leaves location out of the credentials file so BigQuery chooses the location dynamically.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. |
compiledataform 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).testdataform 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.
rundataform 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
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.