`homeboy api` command reference

Generated from the clap command tree. This page is the complete synopsis, argument, flag, and subcommand surface for this command family.

Concepts, recipes, and contracts are hand-written in docs/commands/api.md.

Global flags apply to every command and are documented once in the root command reference.

homeboy api

sh
homeboy api <COMMAND>

Make API requests to a project

SubcommandSummary
homeboy api authManage API credentials and auth profiles
homeboy api httpMake generic HTTP requests to full URLs
homeboy api getMake a GET request
homeboy api postMake a POST request
homeboy api putMake a PUT request
homeboy api patchMake a PATCH request
homeboy api deleteMake a DELETE request

homeboy api auth

sh
homeboy api auth <COMMAND>

Manage API credentials and auth profiles

SubcommandSummary
homeboy api auth loginAuthenticate with a project’s API
homeboy api auth setStore a project API variable in the OS keychain
homeboy api auth getRead a project API variable from the OS keychain
homeboy api auth removeRemove a project API variable from the OS keychain
homeboy api auth logoutClear stored authentication for a project
homeboy api auth statusShow authentication status for a project
homeboy api auth profileManage reusable auth profiles for generic HTTP requests

homeboy api auth login

sh
homeboy api auth login [OPTIONS]

Authenticate with a project’s API

OptionValueDescription
--project<PROJECT>Project ID
--identifier<IDENTIFIER>Username or email
--password<PASSWORD>Password (or read from stdin)

homeboy api auth set

sh
homeboy api auth set [OPTIONS] <VARIABLE> [VALUE]

Store a project API variable in the OS keychain

ArgumentRequiredDescription
<VARIABLE>yesVariable name
[VALUE]noSecret value (or read from stdin)
OptionValueDescription
--project<PROJECT>Project ID

homeboy api auth get

sh
homeboy api auth get [OPTIONS] <VARIABLE>

Read a project API variable from the OS keychain

ArgumentRequiredDescription
<VARIABLE>yesVariable name
OptionValueDescription
--project<PROJECT>Project ID
--redactedflagReturn a redacted marker instead of the secret value

homeboy api auth remove

sh
homeboy api auth remove [OPTIONS] <VARIABLE>

Remove a project API variable from the OS keychain

ArgumentRequiredDescription
<VARIABLE>yesVariable name
OptionValueDescription
--project<PROJECT>Project ID

homeboy api auth logout

sh
homeboy api auth logout [OPTIONS]

Clear stored authentication for a project

OptionValueDescription
--project<PROJECT>Project ID

homeboy api auth status

sh
homeboy api auth status [OPTIONS]

Show authentication status for a project

OptionValueDescription
--project<PROJECT>Project ID

homeboy api auth profile

sh
homeboy api auth profile <COMMAND>

Manage reusable auth profiles for generic HTTP requests

SubcommandSummary
homeboy api auth profile set-basicStore a Basic auth profile in the OS keychain
homeboy api auth profile set-bearerStore a Bearer token auth profile in the OS keychain
homeboy api auth profile statusShow whether an auth profile is available
homeboy api auth profile removeRemove an auth profile from the OS keychain

homeboy api auth profile set-basic

sh
homeboy api auth profile set-basic [OPTIONS] <PROFILE>

Store a Basic auth profile in the OS keychain

ArgumentRequiredDescription
<PROFILE>yesProfile name
OptionValueDescription
--username<USERNAME>Username
--password<PASSWORD>Password; omit to prompt securely

homeboy api auth profile set-bearer

sh
homeboy api auth profile set-bearer [OPTIONS] <PROFILE>

Store a Bearer token auth profile in the OS keychain

ArgumentRequiredDescription
<PROFILE>yesProfile name
OptionValueDescription
--token<TOKEN>Token; omit to prompt securely

homeboy api auth profile status

sh
homeboy api auth profile status <PROFILE>

Show whether an auth profile is available

ArgumentRequiredDescription
<PROFILE>yesProfile name

homeboy api auth profile remove

sh
homeboy api auth profile remove <PROFILE>

Remove an auth profile from the OS keychain

ArgumentRequiredDescription
<PROFILE>yesProfile name

homeboy api http

sh
homeboy api http <COMMAND>

Make generic HTTP requests to full URLs

SubcommandSummary
homeboy api http getMake a GET request to a full URL
homeboy api http requestMake an arbitrary HTTP request to a full URL

homeboy api http get

sh
homeboy api http get [OPTIONS] <URL>

Make a GET request to a full URL

ArgumentRequiredDescription
<URL>yesFull URL to request
OptionValueDescription
--proxy<PROXY>Optional proxy URL, e.g. socks5://127.0.0.1:8080
--auth-profile<AUTH_PROFILE>Auth profile from homeboy api auth profile ...
--header<HEADERS>Header in Name: value format; repeatable
--json<JSON>JSON request body
--form<FORM>Form field as key=value; repeatable

homeboy api http request

sh
homeboy api http request [OPTIONS] <METHOD> <URL>

Make an arbitrary HTTP request to a full URL

ArgumentRequiredDescription
<METHOD>yesHTTP method
<URL>yesFull URL to request
OptionValueDescription
--applyflagConfirm the mutating request should be sent
--proxy<PROXY>Optional proxy URL, e.g. socks5://127.0.0.1:8080
--auth-profile<AUTH_PROFILE>Auth profile from homeboy api auth profile ...
--header<HEADERS>Header in Name: value format; repeatable
--json<JSON>JSON request body
--form<FORM>Form field as key=value; repeatable

homeboy api get

sh
homeboy api get <PROJECT_ID> <ENDPOINT>

Make a GET request

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<ENDPOINT>yesAPI endpoint (e.g., /wp/v2/posts)

homeboy api post

sh
homeboy api post [OPTIONS] <PROJECT_ID> <ENDPOINT>

Make a POST request

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<ENDPOINT>yesAPI endpoint
OptionValueDescription
--applyflagConfirm the mutating request should be sent
--body<BODY>JSON body
--form<FORM>Form field as key=value. May be repeated

homeboy api put

sh
homeboy api put [OPTIONS] <PROJECT_ID> <ENDPOINT>

Make a PUT request

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<ENDPOINT>yesAPI endpoint
OptionValueDescription
--applyflagConfirm the mutating request should be sent
--body<BODY>JSON body
--form<FORM>Form field as key=value. May be repeated

homeboy api patch

sh
homeboy api patch [OPTIONS] <PROJECT_ID> <ENDPOINT>

Make a PATCH request

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<ENDPOINT>yesAPI endpoint
OptionValueDescription
--applyflagConfirm the mutating request should be sent
--body<BODY>JSON body
--form<FORM>Form field as key=value. May be repeated

homeboy api delete

sh
homeboy api delete [OPTIONS] <PROJECT_ID> <ENDPOINT>

Make a DELETE request

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<ENDPOINT>yesAPI endpoint
OptionValueDescription
--applyflagConfirm the mutating request should be sent