CLI

Every action from a shell or a script: sign-in, commands, input, output and exit codes.

netzo is every action from a shell. It prints tables to a person and JSON to an agent or a script, never asks an agent a question, and returns a stable exit code.

npm i -g @netzo/cli
netzo login                                    # or: export NETZO_API_KEY=...
netzo search "approve sales order"             # find the command
netzo salesorders find --fields id,status --all > orders.ndjson
netzo can salesorders.approve                  # allowed? and why
netzo salesorders approve <id>
netzo blobs put salesorders <id> ./contract.pdf
Exit codeMeans
0Done
1Error
2Usage error or missing input
3Not signed in
4Not allowed
5Not found
6Conflict or invalid data

Input

A command takes one flag per field, such as --label "Acme México", or the whole record with --input '<json>', --input @file.json or --input - (stdin). Add --dry-run to check a write without saving, and --place <module>/<row> to act in one place.