Skip to content

Set the default profile.

Synopsis

gln [global-options] profile set-default <name>

Options

Argument or flagTypeRequiredDefaultDescription
<name>stringyes-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

StatusExitMeaningContinuation
ok0Default-profile pointer updated.-
error1Profile 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

See also