CLI
Run operations from a terminal.
Set up
The command line runs any operation without writing code. Set your key once, then list what is available. Listing needs no key.
export SEAWATTS_API_KEY=...
export SEAWATTS_API_URL=https://your-app.example.com
seawatts apiRun an operation
Run an operation by name. Pass input as flags named after its fields, or as one JSON value with --input. Add --help after an operation to see its fields. The result prints as JSON, ready to pipe into another tool.
seawatts api org.current
seawatts api org.updateName --name acme
seawatts api apiKeyUsage.recent --limit 5
seawatts api apiKeyUsage.stats --input '{"days":7}'