Files
genai-toolbox/docs/en/resources/tools/dataform/dataform-compile-local.md
Yuan Teoh 735cb760ea docs: update long lines and tables (#1952)
Update long lines and tables formatting in markdown doc files.
2025-11-14 20:25:49 +00:00

1.7 KiB

title, type, weight, description, aliases
title type weight description aliases
dataform-compile-local docs 1 A "dataform-compile-local" tool runs the `dataform compile` CLI command on a local project directory.
/resources/tools/dataform-compile-local

About

A dataform-compile-local tool runs the dataform compile command on a local Dataform project.

It is a standalone tool and is not compatible with any sources.

At invocation time, the tool executes dataform compile --json in the specified project directory and returns the resulting JSON object from the CLI.

dataform-compile-local takes the following parameter:

  • project_dir (string): The absolute or relative path to the local Dataform project directory. The server process must have read access to this path.

Requirements

Dataform CLI

This tool executes the dataform command-line interface (CLI) via a system call. You must have the dataform CLI installed and available in the server's system PATH.

You can typically install the CLI via npm:

npm install -g @dataform/cli

See the official Dataform documentation for more details.

Example

tools:  
  my_dataform_compiler:  
    kind: dataform-compile-local  
    description: Use this tool to compile a local Dataform project.

Reference

field type required description
kind string true Must be "dataform-compile-local".
description string true Description of the tool that is passed to the LLM.