Turf
v1.5.1Self-hosted, autonomous infrastructure-as-code tool, built on OpenTofu.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
apply Approve and apply plan
Approve the plan a convergence waits on, named by its digest, and apply it — `tofu apply` of the vended plan. Calling this IS the approval. Applies the round, then stops at the next round's plan gate (awaiting_plan; call plan) when a change was deferred, or ends the convergence: converged, stalled, exhausted, stale, failed or cancelled. decline declines the plan instead: nothing of it is applied and the convergence ends declined (reason says why). Turf actions the apply triggers stop it too (awaiting_actions, with action_requests): steps the configuration asks you to carry out — a check, a…
| Parameter | Type | Description |
|---|---|---|
action_results | object | At awaiting_actions: your result for each of action_requests, by its key — every one at once, to the convergence_id that listed them. A result that is refused is named under refused in the result, a… |
convergence_id | string | The convergence_id from the result that vended the plan, or that listed the turf actions. To approve a plan, or to take a convergence up, it may be omitted for the workspace it holds (workspace_alias)… |
decline | boolean | At awaiting_approval: decline the plan instead of approving it. Nothing of it is applied, and the convergence ends declined. Names the convergence by convergence_id; never with plan_digest or action_r… |
plan_digest | string | plan.digest from the result that vended the plan: the plan you are approving. The digest of any other plan is refused. Omit it, decline and action_results to take up a convergence without answering an… |
planfile | string | A planfile to apply on the workspace (workspace_alias): planfile.ref from the planned result of a plan_only run (status lists the planfiles a workspace holds). With plan_digest, the planfile's digest… |
reason | string | With decline: why, recorded on the round. |
workspace_alias | string | Without convergence_id: the workspace whose convergence to continue — its alias as 'open' named it, omitted for the workspace opened without an alias ('default'). |
cancel Cancel run
Stop the convergence holding a workspace, through its one cancel door: what is in flight finishes, everything not yet started is abandoned, and the convergence ends 'cancelled'. A cancel still finishing at the server's deadline returns the stage the convergence is at with cancelling true; apply with its convergence_id follows it to its end. It is named by its workspace (workspace_alias), not by a convergence_id. Works whether or not this server is following it (one an earlier server started is reached from the workspace).
| Parameter | Type | Description |
|---|---|---|
cause | string | Why, recorded on the convergence. |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
close Close workspace
Close a workspace binding. A convergence this server is following on it is detached, never cancelled: it gives back the state lock and waits in the engine, where a later `open` reports it and apply takes it up again. Nothing in the configuration or the state is touched.
| Parameter | Type | Description |
|---|---|---|
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
delete Delete workspace
Delete a workspace's state from the backend — `tofu workspace delete`. The backend is derived from the configuration as `open` derives it, resolved against the name being deleted, with this call's var and var_file for a backend block or a state encryption that reads a variable (the state is read to count what it holds). Refused for 'default', for a name the backend does not list (`list` shows them), for a workspace open here, for one a convergence holds, and for one whose state holds resources unless force is set (which orphans them). Never touches a configuration directory.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | Workspace to delete — a named state slot inside the backend. Cannot be 'default'. |
backend_config | object | Backend settings merged over the declared ones per key, these winning — 'tofu init -backend-config=key=value'. The place for credentials and per-environment values the backend block deliberately lea… |
backend_config_files | null | array | Backend settings files ('tofu init -backend-config=<file>'), in order, merged below backend_config. |
backend_type | string | Backend type (e.g. 'local', 's3') for a configuration that declares no backend of its own. Omit to use the declared backend — the normal case. A type contradicting a declared backend is refused; edi… |
config_alias | string | Configuration whose backend this is, as registered by init (omit for the configuration init registered without an alias, 'default', however many others are registered). |
force | boolean | Delete even if the workspace's state holds resources (orphans that infrastructure). |
var | object | Root input variable values for this call only — 'tofu -var': what the backend block and the state encryption read. Not kept. A string is the raw text a -var carries; any other JSON value is passed a… |
var_file | null | array | Variables files for this call only — 'tofu -var-file', in order, below var. A relative path is relative to the configuration directory. |
destroy Start destroy run (plans first)
Start the destruction of every object the workspace's state holds — `tofu destroy`. One round: plan plans it, apply applies it. Submits the convergence and stops at round 1's plan gate (awaiting_plan): nothing is planned until plan is called with its convergence_id, and nothing is applied until apply names the plan's digest. Every call returns within the server's deadline, and every result says where the convergence stands (outcome), whether it is over (ended) and the call that continues it (next). One convergence runs on a workspace at a time: calling this again supersedes one waiting at a…
| Parameter | Type | Description |
|---|---|---|
overlays | object | Overlay files laid over the configuration in memory for this convergence alone, never written to the directory: a file name ending .turf.hcl (or .turf.json) to its content. The engine reads each as a… |
plan_only | boolean | Plan one round and end: once plan plans it the round ends 'planned' instead of waiting for approval, nothing is applied, and the workspace is free. The plan is kept by the engine as a planfile (the re… |
var | object | Root input variable values — 'tofu -var'. A string is passed as the raw text a -var carries (parsed by the declaration's type: "2" is a number for a number variable); any other JSON value is passed… |
var_file | null | array | Variables files — 'tofu -var-file', in order, below var, for this convergence only; a name one sets overrides open's var for it. A relative path is relative to the configuration directory (where tof… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
drift Configure drift detection
The control for drift detection on a workspace, the engine watching it for changes made outside Turf between convergences: enabled turns detection on or off; settle, sweep and confirm change how it watches. Name at least one; the rest stand. Turning detection on or off is the user's choice either way: call this only on their words, never on your own. The sweep reads every managed object unattended against the provider's API with the engine's credentials. enabled: false stands alone, and turns detection off even before the workspace has state (it overrides an up's drift: { … } still running).…
| Parameter | Type | Description |
|---|---|---|
confirm | null | boolean | false: no confirming read, so every notice stays unconfirmed and the sweep, which is that read on a cycle, does not run; true: confirm reads a settled object against the standing seal (the default). |
enabled | null | boolean | true turns drift detection on (with any settings named in the same call); false turns it off, closing its open notices, and stands alone: the settings stand while it is off. Only on the user's words. |
settle | null | integer | Seconds a changed object must be quiet before its signal is confirmed and becomes a notice; 0 takes the engine's default (30). |
sweep | null | integer | Seconds one sweep cycle takes to read every managed object, unattended, against the provider's API with the engine's credentials; 0 turns the sweep off. |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'). |
import Start import run (plans first)
Start adopting existing objects into state at addresses the configuration declares — `tofu import`, by ID or by resource identity. One round: plan plans it (the plan shows what each import reads), apply applies it. Submits the convergence and stops at round 1's plan gate (awaiting_plan): nothing is planned until plan is called with its convergence_id, and nothing is applied until apply names the plan's digest. Every call returns within the server's deadline, and every result says where the convergence stands (outcome), whether it is over (ended) and the call that continues it (next). One con…
| Parameter | Type | Description |
|---|---|---|
targets * | null | array | The objects to adopt into state. |
overlays | object | Overlay files laid over the configuration in memory for this convergence alone, never written to the directory: a file name ending .turf.hcl (or .turf.json) to its content. The engine reads each as a… |
plan_only | boolean | Plan one round and end: once plan plans it the round ends 'planned' instead of waiting for approval, nothing is applied, and the workspace is free. The plan is kept by the engine as a planfile (the re… |
var | object | Root input variable values — 'tofu -var'. A string is passed as the raw text a -var carries (parsed by the declaration's type: "2" is a number for a number variable); any other JSON value is passed… |
var_file | null | array | Variables files — 'tofu -var-file', in order, below var, for this convergence only; a name one sets overrides open's var for it. A relative path is relative to the configuration directory (where tof… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
init Initialize configuration
The first command of every workflow, as `tofu init`: registers a configuration directory under config_alias, installs its modules and its providers, and reports what it declares — backend (defaulted:true marks the synthesized local default), workspace name (from the data directory's environment file), variables, outputs, import blocks (the objects up adopts into state), and README.md (capped at 32 KiB). data_dir is where init installs modules, as tofu's: TF_DATA_DIR from the server's environment, relative to the configuration, or its .terraform; the engine installs under a data directory of…
| Parameter | Type | Description |
|---|---|---|
config_alias | string | Alias to register this configuration under (omit for the unnamed 'default'). Later tools name the configuration by it; give each configuration a distinct alias when you work with more than one. |
install_providers | null | boolean | Install the providers the configuration requires into the shared plugin cache, and report each one's version, package directory and checksums (default true), recording the selections in the dependency… |
path | string | Path to the configuration directory. An absent directory is created (with a .gitignore covering .terraform/ and statefiles) — this is how a new configuration starts. Omit to run init again on the di… |
upgrade | boolean | As tofu init -upgrade: select the newest version each provider's constraints admit, past what the dependency lock file (.terraform.lock.hcl) selects, and record the new selections. |
var | object | Root input variable values for this init only — 'tofu init -var': what a module's source or version reads (or a const variable). Not kept: every plan installs the modules again with the values it pl… |
var_file | null | array | Variables files for this init only — 'tofu init -var-file', in order, below var. A relative path is relative to the configuration directory. |
invoke Start action run (plans first)
Start running one action — `terraform apply -invoke=ADDR`: an action the configuration declares (action_addr), or an ad-hoc one (action) laid over the configuration in memory for this convergence alone. What the action's configuration reads is refreshed; nothing else changes. One round: plan plans it, apply runs it. Submits the convergence and stops at round 1's plan gate (awaiting_plan): nothing is planned until plan is called with its convergence_id, and nothing is applied until apply names the plan's digest. Every call returns within the server's deadline, and every result says where the…
| Parameter | Type | Description |
|---|---|---|
action | null | object | An action to run without declaring it: laid over the configuration as an in-memory overlay for this convergence only; the directory is untouched. Set this or action_addr. |
action_addr | string | An action the configuration declares — in a .tf file or a *.turf.hcl overlay — by address, module-qualified where a module declares it (e.g. 'action.aws_lambda_invoke.warm', 'module.app.action.tur… |
overlays | object | Overlay files laid over the configuration in memory for this convergence alone, never written to the directory: a file name ending .turf.hcl (or .turf.json) to its content. The engine reads each as a… |
plan_only | boolean | Plan one round and end: once plan plans it the round ends 'planned' instead of waiting for approval, nothing is applied, and the workspace is free. The plan is kept by the engine as a planfile (the re… |
var | object | Root input variable values — 'tofu -var'. A string is passed as the raw text a -var carries (parsed by the declaration's type: "2" is a number for a number variable); any other JSON value is passed… |
var_file | null | array | Variables files — 'tofu -var-file', in order, below var, for this convergence only; a name one sets overrides open's var for it. A relative path is relative to the configuration directory (where tof… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
list List workspaces
List the workspaces in a configuration's backend — `tofu workspace list` — derived from the configuration as `open` derives it, with this call's var and var_file for a backend block that reads a variable. Refused when the backend body reads terraform.workspace: each workspace then keeps its state in a store of its own, and a list of one store would pass for the whole set.
| Parameter | Type | Description |
|---|---|---|
backend_config | object | Backend settings merged over the declared ones per key, these winning — 'tofu init -backend-config=key=value'. The place for credentials and per-environment values the backend block deliberately lea… |
backend_config_files | null | array | Backend settings files ('tofu init -backend-config=<file>'), in order, merged below backend_config. |
backend_type | string | Backend type (e.g. 'local', 's3') for a configuration that declares no backend of its own. Omit to use the declared backend — the normal case. A type contradicting a declared backend is refused; edi… |
config_alias | string | Configuration whose backend this is, as registered by init (omit for the configuration init registered without an alias, 'default', however many others are registered). |
var | object | Root input variable values for this call only — 'tofu -var': what the backend block and the state encryption read. Not kept. A string is the raw text a -var carries; any other JSON value is passed a… |
var_file | null | array | Variables files for this call only — 'tofu -var-file', in order, below var. A relative path is relative to the configuration directory. |
open Open workspace
Open a workspace against a configuration — `tofu init` with its backend settings, plus `tofu workspace select`. The backend comes from the configuration's own backend block; backend_config and backend_config_files supply only what it leaves out. Reads the state (no lock is held: the engine takes the state lock while a convergence runs) and reports its lineage, serial and resource count (state_list lists them) — no lineage and no serial means no statefile yet: the first up writes one. If a convergence already holds the workspace — one this server or an earlier one started — it is report…
| Parameter | Type | Description |
|---|---|---|
backend_config | object | Backend settings merged over the declared ones per key, these winning — 'tofu init -backend-config=key=value'. The place for credentials and per-environment values the backend block deliberately lea… |
backend_config_files | null | array | Backend settings files ('tofu init -backend-config=<file>'), in order, merged below backend_config. |
backend_type | string | Backend type (e.g. 'local', 's3') for a configuration that declares no backend of its own. Omit to use the declared backend — the normal case. A type contradicting a declared backend is refused; edi… |
config_alias | string | Configuration whose backend this is, as registered by init (omit for the configuration init registered without an alias, 'default', however many others are registered). |
force_unlock | boolean | Release a stale state lock now — 'tofu force-unlock'. Only when you are certain no other process is using the workspace (a previous server died holding it). |
lock_id | string | The lock to release, as the lock error names it; implies force_unlock. Remote (TFC/TFE/Scalr) backends want '<organization>/<workspace>'. |
reconfigure | boolean | Consent to re-binding this workspace's state to a backend that differs from the one the engine recorded for it — 'tofu init -reconfigure'. Taken at the next up (or other plan command). A copied stat… |
var | object | Root input variable values — 'tofu -var' — kept for this workspace while it is open, in this server's memory only: never written down, never shown back (status lists the names). Every later tool o… |
var_file | null | array | Variables files — 'tofu -var-file' — kept with var for this workspace, in order, below var, and read again at each use: name a file that holds a secret rather than reading the secret into the conv… |
workspace_alias | string | Alias every later tool passes as workspace_alias. Omit for the default (unnamed) workspace; name one to open several at once. |
workspace_name | string | OpenTofu workspace name — a named state slot inside the backend, what terraform.workspace reads. Defaults to 'default'. It addresses state a 'tofu workspace select' user created. |
output Read outputs
Read the workspace's root output values from its state — `tofu output -json`: the values the last apply recorded. A sensitive output prints as '__cty_sensitive__' unless show_sensitive.
| Parameter | Type | Description |
|---|---|---|
name | string | One output's name (default: every output). |
show_sensitive | boolean | Print a sensitive output's value instead of '__cty_sensitive__' (default false). Only when you need the secret: it enters the conversation. |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
plan Plan round
Plan the round a convergence waits to plan — `tofu plan`, for the round at its plan gate (awaiting_plan, where up, destroy, refresh, import and invoke stop, and where each apply stops when another round is needed). Stops at the round's approval point (awaiting_approval) and returns the plan as its resource (plan.uri: the OpenTofu json-format plan as `tofu show -json` prints it, redacted; show reads it) with its digest (plan.digest): nothing is applied until apply names that digest. A round with nothing to apply needs no approval: the call runs it through and stops at the next gate or the end…
| Parameter | Type | Description |
|---|---|---|
convergence_id | string | The convergence_id from the result that reported awaiting_plan (or any result of this convergence). Omit it to name the convergence by the workspace it holds instead (workspace_alias). |
refresh | null | boolean | Read each managed object before planning this round (default true). false is 'tofu plan -refresh=false': plan against the state as recorded. This round's alone; a later round reads again unless its ow… |
refresh_addresses | null | array | Managed resource instance addresses this round reads before planning; every other row plans from its record, and one that then plans a change is read and planned again. An up's plan only, never with r… |
refresh_drift | boolean | Read what the workspace's open drift notices name: the server fills the refresh scope from them as the round plans (with refresh_addresses, the union). With nothing open the round reads every object,… |
replace | null | array | Resource instance addresses to replace in this round even where the configuration has not changed — 'tofu plan -replace=ADDR'. An up's plan only. This round's alone: the next round does not replace… |
workspace_alias | string | Without convergence_id: the workspace whose convergence to plan — its alias as 'open' named it, omitted for the workspace opened without an alias ('default'). |
provider_describe Describe provider schema
Describe one resource type, data source type or action type of a provider — `tofu providers schema`, one type at a time: attribute names, types, descriptions, and whether each is required, optional or computed — or one of its provider-defined functions: parameters, return type and description. Needs no workspace: the provider is installed into the shared plugin cache and asked, so this downloads the provider from its registry when the cache lacks it, and runs it. Turf's own action (turf_action, provider terraform.io/builtin/turf) is described without a version.
| Parameter | Type | Description |
|---|---|---|
action_type | string | Action type to describe (e.g. 'aws_lambda_invoke', or Turf's own 'turf_action'). |
datasource_type | string | Data source type to describe (e.g. 'aws_ami'). |
function | string | Provider-defined function to describe (e.g. 'rfc3339_parse' of hashicorp/time), called as provider::<local name>::<function>(…) where the module's required_providers declares the provider. |
provider | string | Provider source (e.g. 'hashicorp/aws'). Pass 'terraform.io/builtin/turf' with no type to list Turf's own actions. |
provider_version | string | Provider version (e.g. '5.0.0'). Required for a registry provider. |
resource_type | string | Managed resource type to describe (e.g. 'aws_s3_bucket'). One of resource_type, datasource_type, action_type, function. |
provider_search Search providers
Search the OpenTofu provider registry for providers matching a query: names, latest versions and descriptions. Needs no workspace.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query for providers (e.g. 'aws', 'google', 'kubernetes') |
read_skill_file Read skill file
Read a supporting file inside a skill's directory (e.g. references/imports.md). Use after loading a skill whose SKILL.md referenced an attachment.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the skill directory (e.g. 'references/imports.md'). |
skill_name * | string | The skill name (e.g. 'deployment', 'authoring', 'guide') — the bare name, not the loader tool name 'skill_deployment'. |
refresh Start refresh run (plans first)
Start a refresh: read every managed object and plan writing what was found into the state, changing nothing in the world — `tofu apply -refresh-only`. One round: plan plans it, apply applies it. Submits the convergence and stops at round 1's plan gate (awaiting_plan): nothing is planned until plan is called with its convergence_id, and nothing is applied until apply names the plan's digest. Every call returns within the server's deadline, and every result says where the convergence stands (outcome), whether it is over (ended) and the call that continues it (next). One convergence runs on a w…
| Parameter | Type | Description |
|---|---|---|
overlays | object | Overlay files laid over the configuration in memory for this convergence alone, never written to the directory: a file name ending .turf.hcl (or .turf.json) to its content. The engine reads each as a… |
plan_only | boolean | Plan one round and end: once plan plans it the round ends 'planned' instead of waiting for approval, nothing is applied, and the workspace is free. The plan is kept by the engine as a planfile (the re… |
var | object | Root input variable values — 'tofu -var'. A string is passed as the raw text a -var carries (parsed by the declaration's type: "2" is a number for a number variable); any other JSON value is passed… |
var_file | null | array | Variables files — 'tofu -var-file', in order, below var, for this convergence only; a name one sets overrides open's var for it. A relative path is relative to the configuration directory (where tof… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
show Show plan or state
Show a plan or the state as the OpenTofu machine-readable document — `tofu show -json`. A plan is a convergence round's, as the engine captured it when the round sealed: the document at plan.uri, which this reads. The state is read from the engine's records of the workspace. Values the document marks sensitive print as '__cty_sensitive__' unless show_sensitive.
| Parameter | Type | Description |
|---|---|---|
convergence_id | string | For a plan: the convergence (default: the one holding the workspace). |
planfile | string | For a plan: a planfile's ref (planfile.ref of a planned result) — the planned round's document, the one plan_digest names when apply applies it. convergence_id and round are then not read. |
round | integer | For a plan: the round (default: the round waiting at its approval point, else the latest). |
show_sensitive | boolean | Print sensitive values in the clear instead of '__cty_sensitive__' (default false). Only when you need the secret: it enters the conversation. A plan read so is the document plan.digest hashes. |
what | string | 'plan' (default): a convergence round's plan; 'state': the workspace's state. |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
skill_authoring Load authoring skill
Load the authoring skill BEFORE you write or change a .tf or *.turf.hcl file: a configuration from a request in plain language ("create an S3 bucket", "use the Azure AVM disk module"), an edit the user asked for, or an overlay. Covers the edit → init → up loop, discovery (provider_describe, a module's own files), layout, keeping secrets out of files, expression syntax, moved/removed/import blocks, declaring actions and triggers, and the directory as the desired-state store. Load skill_deployment first.
skill_deployment Load deployment skill
Load the deployment skill whenever its text is not in your context: at the start of any session that uses Turf, before any other turf tool, after the conversation was summarized, and before answering a question about a plan, an approval, a convergence, a turf action or a Turf error. Running a configuration — the convergence (up → review the vended plan → apply by its digest, round after round), approval, every outcome, taking up a convergence, turf actions, deferrals, drift, recovery, workspaces and credentials, and the /up and /destroy runbooks.
skill_guide Load guide skill
Load the guide hub: a hands-on, use-case-led walkthrough of what Turf is for, run against committed examples — deploy the NVIDIA AI Cluster Runtime (AICR) on a cluster, take a node through the day-2 maintenance runbook as Terraform actions, a product that installs itself, promotion across environments, a TACO as the control plane, and deploying with guardrails (provider scanning, pinned configurations, policy). Load this ONLY when running the /guide prompt or when the user asks to get started with Turf or what Turf is for — not as part of ordinary request classification.
state_list List state resources
List the resources in the workspace's state — `tofu state list`, one row per instance in address order with its provider, schema version, taint, dependencies and identity — plus the root outputs. include_values adds each resource's attributes, read from the engine's records with the sensitive_values the provider schemas mark; sensitive values print as '__cty_sensitive__' unless show_sensitive.
| Parameter | Type | Description |
|---|---|---|
include_values | boolean | Include each resource's attribute values (default false), read from the engine's records with their sensitive_values. |
show_sensitive | boolean | Print sensitive values in the clear instead of '__cty_sensitive__' (default false). Only when you need the secret: it enters the conversation. |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
status Show open workspaces
The open workspaces: each binding's configuration, backend and lineage, the convergence holding it, if any (with the drift block of an up that asked for drift detection), and its open drift notices: objects the engine saw change outside Turf between convergences, each with its class, changed attribute paths (never values) and source, most severe first, with the coverage and the call that continues (`next`). When this server declares a provider environment (--provider-env), provider_env names the variables a convergence started now would send the engine for its provider plugins, and the declare…
taint Taint resources
Mark resource instances for replacement — `tofu taint`: the next up plans each one's object destroyed and created again. A state edit, applied at once (no plan, no approval).
| Parameter | Type | Description |
|---|---|---|
addrs * | null | array | Resource instance addresses (e.g. 'aws_instance.web', 'module.m.aws_instance.x[0]'). |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
untaint Untaint resources
Clear the taint on resource instances — `tofu untaint`: the next up plans them as their configuration says, without replacing them. A state edit, applied at once.
| Parameter | Type | Description |
|---|---|---|
addrs * | null | array | Resource instance addresses (e.g. 'aws_instance.web', 'module.m.aws_instance.x[0]'). |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
up Start run (plans first)
Start a convergence of the configuration against the workspace — `tofu plan` and `tofu apply`, carried through every round a deferred change needs (a value known only after an apply). Submits the convergence and stops at round 1's plan gate (awaiting_plan): nothing is planned until plan is called with its convergence_id, and nothing is applied until apply names the plan's digest. Every call returns within the server's deadline, and every result says where the convergence stands (outcome), whether it is over (ended) and the call that continues it (next). One convergence runs on a workspace at…
| Parameter | Type | Description |
|---|---|---|
drift | null | object | Turn drift detection on for the workspace when this run converges, with these settings (as the drift tool takes them; name at least one); every result carries drift { …, state }. Turning detection o… |
max_rounds | integer | Most rounds the convergence runs before ending 'exhausted' with work still deferred (default 5). |
overlays | object | Overlay files laid over the configuration in memory for this convergence alone, never written to the directory: a file name ending .turf.hcl (or .turf.json) to its content. The engine reads each as a… |
plan_only | boolean | Plan one round and end: once plan plans it the round ends 'planned' instead of waiting for approval, nothing is applied, and the workspace is free. The plan is kept by the engine as a planfile (the re… |
var | object | Root input variable values — 'tofu -var'. A string is passed as the raw text a -var carries (parsed by the declaration's type: "2" is a number for a number variable); any other JSON value is passed… |
var_file | null | array | Variables files — 'tofu -var-file', in order, below var, for this convergence only; a name one sets overrides open's var for it. A relative path is relative to the configuration directory (where tof… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'), however many others are open. |
watch Watch for drift
Wait for drift on a workspace: objects the engine saw change outside Turf between convergences, confirmed and classified as drift notices (status shows them too). Returns when there is something new to act on — an open drift notice the cursor has not reported — with outcome drift: the drift block (each address with its class and changed attribute paths, never values; new ones marked), a cursor, and next: up, at whose plan gate plan with refresh_drift: true reads only what drifted. A notice clearing wakes nobody. Without a cursor anything open is new and the call returns at once (a catch-up…
| Parameter | Type | Description |
|---|---|---|
cursor | string | The cursor from the last watch result: what it reported, so the watch wakes only on what is new since. 'now': take what is open as this call begins as reported, and wait only for what opens after. Omi… |
for | integer | Total seconds to keep watching, counted from the first call of this watch (the cursor carries it). Past it with nothing new the watch ends 'quiet'. Omit to watch until something drifts. |
quiet_for | integer | Seconds the open drift must have been still (no new signal, no new read, by the engine's clock) before the watch returns it (default 0). Use it to let a burst settle, or to leave room for someone who… |
wake_on | string | Which drift notices wake the watch: 'confirmed' (default) — gone, configured, referenced, contended and uncovered, leaving unconfirmed ones to the engine's confirm (unless nothing will confirm them… |
workspace_alias | string | Workspace alias, as 'open' named it. Omit for the workspace opened without an alias ('default'). |