Skip to content
machinemail

profiles

Named sets of API key and base URL; switch between them. The `machinemail profiles` commands: arguments, flags, examples and the API routes they call.

Named sets of API key and base URL; switch between them.

CommandSummary
profiles deleteDelete a profile and its stored key
profiles listList profiles (keys masked)
profiles useMake a profile the current one

Every command also takes the global flags.

profiles delete

Delete a profile and its stored key.

Also: machinemail profiles rm.

Removes the profile from the config file. The key stays valid on the server; revoke it with machinemail api-keys delete. On a terminal you confirm by typing the profile name; elsewhere pass —yes.

shell
machinemail profiles delete <profile>

Arguments

<profile>stringRequired
Profile name

Examples

shell
machinemail profiles delete old-staging
machinemail profiles delete ci --yes

profiles list

List profiles (keys masked).

Also: machinemail profiles ls.

shell
machinemail profiles list

Examples

shell
machinemail profiles list
machinemail profiles list --json | jq -r '.profiles[].name'

profiles use

Make a profile the current one.

Also: machinemail profiles switch.

shell
machinemail profiles use <profile>

Arguments

<profile>stringRequired
Profile name

Examples

shell
machinemail profiles use staging