JSON Output
Human-readable output is the default.
Use --json for scripting:
Output rules:
- direct API wrapper commands emit the API response body
- convenience flows like
upload emit CLI-specific JSON
- when local file uploads happen before submission,
posts create emits CLI-specific JSON
Exit Codes
0: success
1: local CLI, config, or input failure
2: remote API or upload failure
Shell Automation Example
GitHub Actions Example
AI Agent Notes
If you are using the CLI in an automated agent workflow:
- prefer
--json
- prefer
mallary posts create --file payload.json for complex payloads
Last modified on July 30, 2026