Command Selection and CLI
Command selection guide
Shared connection parameters
Most execution commands share the same global connection parameters:
Execution modes can be ordered candidates such as --mode 'Enable,Config' or --mode 'Root|User'. rauto validates the candidates against the selected Profile, then rneter uses the first reachable mode.
Common examples
exec
If you need a specific execution mode:
exec, flow, show, and config fetch also accept repeatable --target, --group, and --label/--tag selectors with bounded --max-parallel concurrency.
Enable TextFSM parsing for raw command output:
Export parsed rows to Excel:
--textfsm-excel also enables TextFSM parsing, so --parse-textfsm is optional in this example.
show
Useful inspection flags:
Batch show over saved targets:
show parses with TextFSM by default. Continue with Show Objects and TextFSM for catalog, parsing, Excel export, and custom mapping details.
template
To render without executing:
flow
The same flow can run across a deduplicated target set:
config fetch
See Configuration Fetch and Drift Hashes for catalog overrides, normalization, and output rules.
device discover
See Automatic Device Discovery for filters, TUI controls, and safe connection import.
upload
Recording and replay
Execution commands generally support recording:
To inspect a recording, you can first list entries:
You can also replay a specific command:
Recommended connection workflow
Ad-hoc phase
Create a credential once, then pass --host and --credential for direct targets.
Repetitive execution phase
Move to saved connections:
Then reuse it consistently:
Multi-device phase
Using saved connections together with inventory group, tx-workflow, and orchestrate is more stable than hand-writing connection flags everywhere.
Full management command families
The current CLI source defines a broader management surface than the quick selection table alone suggests.
rauto profile
Current subcommands from source:
listautodetect [-v|-vv]show <name>delete-custom <name>copy-builtin <source> <name> [--overwrite]diagnose <name> [--json]
rauto device / rauto connection
Current subcommands from source:
testlistshow <name>delete <name>add <name>import <file> [--json]discover <targets...> [--port ...] [--probe-credential ...] [--auto-save]discover list [--status ...] [--profile ...] [--port ...] [--search ...] [--json]discover save [host[:port] ...] [--profile ...] [--overwrite]
rauto credential
Current credential operations:
list [--json]show <name-or-id> [--json]add <name> [--login-username ...] [--enable] [--json]update <name-or-id> [--name ...] [--enable|--disable-enable] [--json]import <file> [--json]delete <name-or-id>
Credential secrets are encrypted separately from connection metadata. Continue with Device Credentials for the full lifecycle.
rauto inventory
Current inventory operations:
group list [--json]group show <name> [--json]group upsert <name> [--file <path> | --content <json>]group delete <name>
Groups contain a name, optional description, and saved connection host names. Variables remain execution inputs rather than inventory-group state.
rauto session
Current subcommands:
list [connection-name] [--limit <n>] [--json]show [id] [--json|--raw]delete <id>replay [record-file] [--id <id>] [--list] [--command <cmd>] [--mode <mode>]
rauto blacklist
Current subcommands:
listadd <pattern>delete <pattern>check <command>
rauto templates
Current subcommands:
listshow <name>create <name> [--file <path> | --content <template>]update <name> [--file <path> | --content <template>]delete <name>
rauto flow-template
Current subcommands:
listshow <name>create <name> [--file <path> | --content <toml>]update <name> [--file <path> | --content <toml>]delete <name>
rauto textfsm
Current subcommands from source:
template listtemplate show <name>template create <name> [--file <path> | --content <textfsm>]template update <name> [--file <path> | --content <textfsm>]template delete <name>mapping list [--profile <profile>]mapping set --profile <profile> --command <command> --template <name>mapping delete --profile <profile> --command <command>
rauto show-object
Current subcommands from source:
list [--profile <profile>]set --profile <profile> --object <object> --command <command> [--mode <mode>] [--textfsm-template <name>] [--textfsm-mapping-command <command>] [--disabled]delete --profile <profile> --object <object>
rauto tx-workflow template
Current saved workflow template operations:
listshow <name>create <name> [--file <path> | --content <json>]update <name> [--file <path> | --content <json>]delete <name>
rauto orchestrate template
Current saved orchestration template operations:
listshow <name>create <name> [--file <path> | --content <json>]update <name> [--file <path> | --content <json>]delete <name>
rauto backup
Current subcommands:
create [--output <archive>]restore <archive> [--replace]list
Other useful management commands
rauto profile listrauto profile autodetect -vrauto profile show <name>rauto templates listrauto flow-template listrauto textfsm template listrauto show-object list --profile <name>rauto connection listrauto session list <connection-name>rauto blacklist listrauto backup list
Recording and replay details
The source code and README together make it clear that recording is a first-class capability rather than a secondary debugging feature.
Recording-related options currently include:
exec/template/flow/upload/tx/tx-workflow --record-file <path>exec/template/flow/upload/tx/tx-workflow --record-level <key-events-only|full>session replay <record_file> --listsession replay <record_file> --command <cmd> [--mode <mode>]session replay --id <record-id> --list
Operational notes from the current README:
- replayed
SessionEvent::CommandOutputentries may includeexit_codefor Linux shell flows key-events-onlyis the minimum audit-friendly levelfullcaptures richer prompt and state-transition detail
Operational guidance
Use command families, not isolated commands
In enterprise usage, rauto is best treated as a command family rather than a single execution command.
A typical operator path often looks like:
connection addto normalize targetsprofile autodetect,profile show, orprofile diagnoseto validate profile behaviorshowfor read-only operational checks and TextFSM parsingtemplateorflowfor repeatable task executiontx/tx-workflow/orchestratefor governed change deliverysession list/show/replayand backups for audit and recovery
If you need parsed read-only operational data, continue with Show Objects and TextFSM.