shelly config edit

shelly config edit

Open CLI config in editor

Synopsis

Open the Shelly CLI configuration file in your default editor.

The editor is determined by:

  1. ’editor’ setting in config file
  2. $EDITOR environment variable
  3. $VISUAL environment variable
  4. Falls back to common editors (nano, vim, vi)

This allows you to directly edit the configuration file, including devices, aliases, groups, scenes, and other settings.

1
shelly config edit [flags]

Examples

1
2
3
4
5
  # Open config in default editor
  shelly config edit

  # Set EDITOR and open
  EDITOR=nano shelly config edit

Options

1
  -h, --help   help for edit

Options inherited from parent commands

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
      --config string           Config file (default $HOME/.config/shelly/config.yaml)
      --log-categories string   Filter logs by category (comma-separated: network,api,device,config,auth,plugin)
      --log-json                Output logs in JSON format
      --no-color                Disable colored output
      --no-headers              Hide table headers in output
      --offline                 Only read from cache, error on cache miss
  -o, --output string           Output format (table, json, yaml, template) (default "table")
      --plain                   Disable borders and colors (machine-readable output)
  -q, --quiet                   Suppress non-essential output
      --refresh                 Bypass cache and fetch fresh data from device
      --template string         Go template string for output (use with -o template)
  -v, --verbose count           Increase verbosity (-v=info, -vv=debug, -vvv=trace)

SEE ALSO