Skip to main content

chainmail rule show

Show a rule with its recent runs; --toml prints it as a rule file

Usage​

chainmail rule show <id|name> [flags]

Examples​

chainmail rule show receipts --history
# save a rule as a file to edit
chainmail rule show receipts --toml > receipts.toml

Flags​

--history also list the rule's revisions, newest first
--toml print the rule as a rule file, the shape rule create -f reads

Global flags​

--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)

See also​