Skip to content

lemano state show

Show the attributes of one object of a target

Description

Show one object of a generation of a target (the latest, or the one -g
names): its recorded attributes, sorted, as the blocks of a plan are
written. ADDRESS is the object as lemano diff prints it: KIND/IDENTITY.

Sensitive fields show as (sensitive value). The content of a file is
never printed: its hash is among the attributes, and a line says why a
diff would not show it either. When the target has a baseline, "~" marks
each field that differs from the accepted state and "+" marks an object
the baseline does not have. The conditions and notes the object's kind
declares follow the block.

With -o, the object is printed as stored, with its status, as a KRM
object; sensitive fields hold keyed hashes, never their values.

Synopsis

lemano state show NAME ADDRESS [-g N] [-o json|yaml]

Examples

lemano state show web-07 Package/nginx
lemano state show web-07 File//etc/nginx/nginx.conf -g 3
lemano state show web-07 Sysctl/vm.swappiness -o yaml

Flags

FlagTypeDefaultDescription
-g, --generationint64-1the generation to show (default: the latest)
-o, --outputstringoutput format: json or yaml (default: a table for people)

Flags inherited from parent commands

FlagTypeDefaultDescription
--log-levelstringwarnlog level on standard error: debug, info, warn or error
--no-colornever colour the text (colour is also off when $NO_COLOR is set, when $TERM is dumb and when the output is not a terminal; $FORCE_COLOR turns it on, over $NO_COLOR)
--password-promptask on the terminal for the login password of each target whose file names none
--ssh-configstringssh configuration file that targets’ connection settings are read from, or none to read none (default $LEMANO_SSH_CONFIG, else the files ssh reads)
--storestringpath of the store (default $LEMANO_STORE, else $XDG_DATA_HOME/lemano/lemano.db)
--sudo-password-promptask on the terminal for the sudo password of each target whose file names none

Exit codes

See exit codes.

See also