-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Machines Snippets Ls
Lists the saved commands a machine offers: the ones saved against it, plus every
shared one. list is an accepted alias, and ls is the group's default, so
ed machines snippets <machine> runs it. The group itself answers to snippet
as well as snippets.
ed machines snippets ls <machine> [--json]
| Name | Type / values | Default | What it does |
|---|---|---|---|
<machine> |
string, required | none | Machine name, ssh alias, id or unambiguous prefix. |
| Name | Type / values | Default | What it does |
|---|---|---|---|
--json |
flag | off | Emit JSON on stdout instead of the table. |
--help, -h
|
flag | off | Print the help for this command on stdout and exit 0. |
Snippets are numbered from 1 in the order they were saved. Nothing is sorted, and shared snippets sit in the same numbering as this machine's own:
$ ed machines snippets ls tuf
# TITLE SCOPE COMMAND
1 logs machine journalctl -xe --no-pager
A machine with none prints Asus TUF 7 has no snippets on stderr and exits 0.
[
{
"command": "journalctl -xe --no-pager",
"id": "F8D5CE93-C9B4-4A05-9109-9AEB1BD806BA",
"index": 1,
"sharedAcrossMachines": false,
"title": "logs"
}
]sharedAcrossMachines is true for a snippet with no machine of its own, which
is the shared value in the SCOPE column.
ed machines snippets ls tuf
ed machines snippets tuf
ed machines snippets ls tuf --json | jq -r '.[] | select(.sharedAcrossMachines) | .title'
Read only, straight out of snippets.json, with no connection opened. A snippet
is a saved string; nothing here runs it. To run one, pass it to
ed machines exec or the ed <machine> ... shorthand.
-
ed machines, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides