Command map

show config fmt

Pretty-print the configuration with consistent formatting.

Ze command

Registry path
show config fmt
Usage
show config fmt [check] [diff]
Mode
read-only, offline
Wire method
ze-config-cli:show-config-fmt
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, while streaming
log
Pipes, local process only
save
Answer shape
blob

Description

Normalizes indentation and ordering. Output goes to stdout (read-only). To
rewrite the file in place, use 'ze config fmt -w' from the CLI.

Arguments

NameTypeRequiredValuesSummaryDescription
checkflagnoany value of this typeReport whether formatting is neededAnswers whether the file needs formatting instead of the formatted text: exit 0 when it is formatted, 1 with the file named when it is not.
diffflagnoany value of this typeShow what formatting would changeAnswers the unified diff formatting would apply instead of the formatted text.

Mapping intents

Show running, candidate, and diffed configuration

Category: Configuration

Juniper Junos MX

No equivalent is listed for this vendor yet.

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.