Skip to content

tfcensus config show ​

show merges the defaults, the user file, the project file, TFCENSUS_* variables and flags, and prints the result. --sources adds the layer each value came from, and for env and flag values the variable or flag that set it.

Usage ​

sh
tfcensus config show [flags]

Flags ​

FlagDescriptionTypeDefaultValuesConfig keyNotes
--sourcesshow where each value comes frombool

The global flags work with every command.

Output formats ​

--format accepts tty, plain, json. Without it, the format is tty when stdout is a terminal and plain otherwise. Formats are described on the global flags page.

Exit codes ​

CodeMeaning
0The command finished. With --fail-on, nothing matched.
1The command failed: a read, a write, a child process or a check failed.
2Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal.
130Interrupted by Ctrl-C (SIGINT) or a cancelled context.

All codes are listed on the exit codes page.

Examples ​

sh
tfcensus config show
tfcensus config show --sources
TFCENSUS_CACHE_TTL=30m tfcensus config show --sources --format json