refresh
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 workspace at a time: calling this again supersedes one waiting at a gate — its plan gate or its approval point (it is cancelled, and the result’s note says so) — and is refused while one is planning or applying.
Tiers: plan · full
Annotations
Section titled “Annotations”| Annotation | Value |
|---|---|
title |
Start refresh run (plans first) |
readOnlyHint |
false |
destructiveHint |
false |
idempotentHint |
false |
openWorldHint |
true |
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
workspace_alias |
string | no | Workspace alias, as ‘open’ named it. Omit for the workspace opened without an alias (‘default’), however many others are open. |
var |
object | no | 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 as its HCL literal. Held for this convergence only, never kept: laid over the values open was given, name by name, and the read tools use open’s, not these — a state-encryption passphrase goes to open. Above var_file, the auto-loaded *.tfvars and TF_VAR_ environment. |
var_file |
array of string | no | 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 tofu would run). terraform.tfvars and *.auto.tfvars in the configuration directory are loaded without naming them. |
overlays |
map of string | no | 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 file of the directory in every round, so an action declared in one can be invoked and an action_trigger in one binds its target. A name that collides with a file in the directory is refused. A later up without them drops them: to keep an interaction point, write the file instead. |
plan_only |
boolean | no | 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 result’s planfile: ref, digest, expires_at; plan.uri reads it) for apply with planfile to apply later — from this server, or from another that opens the workspace. A planfile applies only while nothing has moved: an edit to the configuration, a change to the state or another convergence on the workspace makes it stale. |
Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.
© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub