Improve CLI scriptability
Open
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 17h 7m
- Merged PRs (30d)
- 358
Description
The `backend.ai` CLI currently has "human-friendly" outputs only.Let's support more automation.
- [x] Provide JSON outputs for all commands, using a root-level option `--output=json`.
- [x] Explicit semantics for the process exit codes (notably, 0 for success and 1 for failures).
Overall, we could refer this guide: https://clig.dev/ (Korean translation: https://news.hada.io/topic?id=3484)
JIRA Issue: BA-298
Contributor guide
Assessment
This issue has not been assessed yet.