fob-mdm config
A profile is a saved API key and secret for one organization. Profiles are kept in ~/.fob/fob-mdm/config.yml, readable only by you. The CLI reads credentials only from a profile, never from environment variables. Every command uses the current profile, or the one named with --profile.
fob-mdm config <action> [target] [options]
| Action | Description |
|---|---|
profiles add | Add a profile (or replace one). Asks for the API key and secret |
profiles list | List profiles; * marks the current one |
profiles use | Switch the current profile |
profiles remove | Remove a profile |
config profiles add
Add a profile (or replace one). Asks for the API key and secret.
fob-mdm config profiles add <name> [options]
| Argument or option | Required | Default | Description |
|---|---|---|---|
<name> | Yes | Profile name, e.g. your organization. | |
--api-url <url> | API origin (default https://mdm.finopsbricks.com). |
fob-mdm config profiles add acme
✔ API key (fob_mdm_…) fob_mdm_xxxxxxxxxxxxxxxxxx
✔ API secret ************************
Saved profile 'acme' (https://mdm.finopsbricks.com). The key works.
It is the current profile.
Asks for the key and the secret, so they stay out of your shell history. The key is checked against the API before it is saved. Your first profile becomes the current one. Adding a name that exists replaces it.
config profiles list
List profiles; * marks the current one.
fob-mdm config profiles list [options]
Also config profiles ls.
fob-mdm config profiles list
NAME API URL
------------------------------------------
* acme https://mdm.finopsbricks.com
acme-labs https://mdm.finopsbricks.com
config: /Users/you/.fob/fob-mdm/config.yml
* marks the current profile. Secrets are never shown.
config profiles use
Switch the current profile.
fob-mdm config profiles use <name> [options]
| Argument or option | Required | Default | Description |
|---|---|---|---|
<name> | Yes | Profile name. |
fob-mdm config profiles use acme-labs
Now using profile 'acme-labs'.
config profiles remove
Remove a profile.
fob-mdm config profiles remove <name> [options]
Also config profiles rm.
| Argument or option | Required | Default | Description |
|---|---|---|---|
<name> | Yes | Profile name. |
fob-mdm config profiles remove acme-labs
Removed profile 'acme-labs'. Current profile: 'acme'.
Removing the current profile switches to another one, if there is one.
Every command also takes --profile <name> and --help. See Command-line Interface.
Using an AI agent? Give it the raw Markdown of this page, or the docs index.