LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

tofu-output

Display OpenTofu state output values

TLDR

Show all outputs
$ tofu output
copy
Show specific output
$ tofu output [name]
copy
Output as JSON
$ tofu output -json
copy
Get raw value
$ tofu output -raw [name]
copy

SYNOPSIS

tofu output [options] [name]

DESCRIPTION

tofu output displays output values from OpenTofu state. OpenTofu is the open-source fork of Terraform. Shows values defined in output blocks. When called without a name argument, it displays all outputs. The default human-readable format may change between versions; use -json for stable machine-readable output in scripts. When using -json or -raw, sensitive values are displayed in plain text.

PARAMETERS

-json

Output as JSON. Sensitive values are displayed in plain text.
-raw
Output raw string value. Only works with values that can be automatically converted to strings.
-state path
Read from a specific state file instead of the default.
-no-color
Disable color output.

SEE ALSO

Copied to clipboard
Kai