Skip to content

avr api

Call an Avrea API endpoint.

Terminal window
avr api [OPTIONS] <endpoint>

Use GET by default, or POST when supplying fields or input. With GET, HEAD, or --input, fields become query parameters.

Terminal window
Examples:
avr api users/me/organizations
avr api /orgs/acme/workflow-runs -X GET -F limit=5
avr api /logs/search --input search.json
avr api users/me/organizations -i

Arguments

  • ENDPOINT

Options

  • --field, -F <TEXT> — Add a typed field (key=value, @file or @-). (default: () · repeatable)
  • --header, -H <TEXT> — Set a request header (name: value). (default: () · repeatable)
  • --include, -i — Print response status and headers.
  • --input <TEXT> — Read the body from a file or - for stdin.
  • --jq, -q <TEXT> — Filter the JSON response.
  • --method, -X <TEXT> — HTTP request method.
  • --raw-field, -f <TEXT> — Add a literal string field (key=value). (default: () · repeatable)
  • --silent — Suppress the response body.