lemano target list
List the targets the store knows
Description
List the targets the store knows, as recorded by their last discover: a
table by default, or the targets as KRM objects with their status with -o.
Selectors match the labels the target files declare and the labels derived
from discovered facts (os, os.version, family, arch).Synopsis
lemano target list [-l SELECTOR] [-o json|yaml]Examples
lemano target list
lemano target list -l env=prod -o jsonFlags
| Flag | Type | Default | Description |
|---|---|---|---|
-o, --output | string | output format: json or yaml (default: a table for people) | |
-l, --selector | string | label selector: key=value pairs separated by commas, all of which must match |
Flags inherited from parent commands
| Flag | Type | Default | Description |
|---|---|---|---|
--log-level | string | warn | log level on standard error: debug, info, warn or error |
--no-color | never 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-prompt | ask on the terminal for the login password of each target whose file names none | ||
--ssh-config | string | ssh configuration file that targets’ connection settings are read from, or none to read none (default $LEMANO_SSH_CONFIG, else the files ssh reads) | |
--store | string | path of the store (default $LEMANO_STORE, else $XDG_DATA_HOME/lemano/lemano.db) | |
--sudo-password-prompt | ask on the terminal for the sudo password of each target whose file names none |
Exit codes
See exit codes.
See also
- lemano target: the parent command