Synopsis
cluck peck <METHOD> <path> [--data D]
Description
Sends an authenticated request to the Pollosoft API. Useful for scripting and for impressing co-workers.
Options
| Flag | Description |
|---|---|
--data D | Request body as JSON |
--header H | Add a header |
--raw | Do not pretty-print the response |
All commands also accept the global flags --coop, --json, --quiet, and --no-color, plus --help, which prints this page in a smaller font.
Example
$ cluck peck GET /v1/coops
{
"data": [{"id": "coop_8f2a", "name": "main"}]
}
Exit codes
| 0 | Success. A quiet cluck. |
|---|---|
| 1 | The command ran but reported a problem, such as a failing check. |
| 2 | Bad usage: a flag was missing or invalid. |
| 3 | Authentication or permission error. See HEN-2001. |