~/.zmeel/context.json. Once a profile is set, every client command picks up those defaults automatically.
Commands
context set
Save or update values on a profile.| Option | Description |
|---|---|
--api-base <url> | Base URL of your Zmeel server |
--company-id <id> | Default company ID for company-scoped commands |
--api-key-env-var-name <name> | Name of the environment variable that holds your API key |
--profile <name> | Profile to write to (defaults to the currently active profile) |
--use | Also set this profile as the active profile after saving |
--context <path> | Path to a custom context file instead of ~/.zmeel/context.json |
--data-dir <path> | Isolate all local state away from ~/.zmeel |
--json | Output the updated profile as raw JSON |
context show
Print the active profile and the path to the context file.| Option | Description |
|---|---|
--profile <name> | Inspect a specific profile instead of the active one |
--context <path> | Path to a custom context file |
--data-dir <path> | Isolate all local state away from ~/.zmeel |
--json | Output raw JSON |
context list
List all profiles defined in the context file.| Option | Description |
|---|---|
--context <path> | Path to a custom context file |
--data-dir <path> | Isolate all local state away from ~/.zmeel |
--json | Output raw JSON |
context use
Switch the active profile.| Argument | Description |
|---|---|
<profile> | Name of the profile to activate |
| Option | Description |
|---|---|
--context <path> | Path to a custom context file |
--data-dir <path> | Isolate all local state away from ~/.zmeel |
Global options
All client commands support these options. When present, they override whatever is saved in the active context profile.| Option | Description |
|---|---|
--api-base <url> | Override the server base URL for this invocation |
--api-key <token> | Bearer token for this invocation |
--context <path> | Path to a custom context file |
--profile <name> | Use a specific profile for this invocation |
--data-dir <path> | Isolate all local state away from ~/.zmeel |
--json | Output raw JSON |