Cloud access (optional remote control via Shelly Cloud)
Telemetry (optional anonymous usage statistics)
INTERACTIVE MODE (default):
Run without flags for the full guided wizard.
DEFAULTS MODE (–defaults):
Runs the full wizard with sensible defaults, no prompts.
Discovers devices, registers with default names, installs completions.
Combine with flags to override individual defaults (e.g., –defaults –theme nord).
INDIVIDUAL FLAGS:
Pass specific flags to set values; other steps remain interactive.
Use –check to verify your current setup without making changes.
--aliases Install default command aliases (opt-in)
--all-networks Scan all detected subnets without prompting
--api-mode string API mode: local,cloud,auto (default: local)
--check Verify current setup without making changes
--cloud-email string Shelly Cloud email (enables cloud setup)
--cloud-password string Shelly Cloud password (enables cloud setup)
--completions string Install completions for shells: bash,zsh,fish,powershell (comma-separated)
--defaults Use sensible defaults for all prompts (no interactive questions)
--device stringArray Device spec: name=ip[:user:pass] (repeatable)
--devices-json stringArray JSON device(s): file path, array, or single object (repeatable)
--discover Run device discovery without prompting
--discover-modes string Discovery modes: http,mdns,coiot,ble,all (comma-separated) (default "http")
--discover-timeout duration Discovery timeout (default 2m0s)
--force Overwrite existing configuration
-h, --help help for init
--network stringArray Subnet(s) for HTTP probe discovery (repeatable)
--no-color Disable colors in output
--output-format string Set output format: table,json,yaml (default: table)
--telemetry Enable anonymous usage telemetry (opt-in)
--theme string Set theme (default: dracula)
Options inherited from parent commands
1
2
3
4
5
6
7
8
9
10
11
12
13
--config string Config file (default $HOME/.config/shelly/config.yaml)
-F, --fields Print available field names for use with --jq and --template
-Q, --jq stringArray Apply jq expression to filter output (repeatable, joined with |)
--log-categories string Filter logs by category (comma-separated: network,api,device,config,auth,plugin)
--log-json Output logs in JSON format
--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
shelly - CLI for controlling Shelly smart home devices