gln profile set-default
Set the default profile.
Synopsis
gln [global-options] profile set-default <name>
Options
| Argument or flag | Type | Required | Default | Description |
|---|---|---|---|---|
<name> | string | yes | - | Profile name to mark as the default. |
Description
Updates the registry's default-profile pointer so that later commands omit
--profile resolve to this entry. The named profile must already exist;
this command does not create profiles. Runs locally without contacting any
backend.
Requirements
- Profile: required
- Credential type: none
- Backend prerequisites: None.
- Input mode: None.
Status and exit codes
| Status | Exit | Meaning | Continuation |
|---|---|---|---|
ok | 0 | Default-profile pointer updated. | - |
error | 1 | Profile name was empty, the named profile does not exist, or the registry could not be saved. | - |
Result keys: name
Examples
gln profile set-default demo