Provision a Shelly device using Bluetooth Low Energy (BLE).
This command allows you to configure WiFi credentials and other settings
on a new device without connecting to its AP network first.
BLE provisioning requires:
Bluetooth hardware support on your computer
The device to be in BLE advertising mode (typically when unconfigured)
The device’s BLE address (usually shown as ShellyXXX-YYYYYYYY)
Gen2+ devices support BLE provisioning. Gen1 devices do not have BLE capability.
Without –password, the network’s passphrase is read from this host’s stored
WiFi credentials, or asked for. A network is joined with no password only with
–open, or when an empty answer at the prompt is confirmed.
# Provision WiFi via BLE
shelly provision ble ShellyPlus1-ABCD1234 --ssid "MyNetwork" --password "secret"
# Set device name during provisioning
shelly provision ble ShellyPlus1-ABCD1234 --ssid "MyNetwork" --password "secret" --name "Living Room Switch"
# Configure with timezone
shelly provision ble ShellyPlus1-ABCD1234 --ssid "MyNetwork" --password "secret" --timezone "America/New_York"
# Disable cloud during provisioning
shelly provision ble ShellyPlus1-ABCD1234 --ssid "MyNetwork" --password "secret" --no-cloud
# Join a network that has no password
shelly provision ble ShellyPlus1-ABCD1234 --ssid "GuestWiFi" --open
--cloud Enable Shelly Cloud
-h, --help help for ble
--name string Device name to set
--no-cloud Disable Shelly Cloud
--open Join a network that has no password
--password string WiFi password for the network (when omitted and one is needed, the passphrase stored on this host for it is used)
--password-stdin Read the WiFi password from stdin
--ssid string WiFi network name (required)
--timezone string Timezone (e.g., America/New_York)
--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-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
--raw Print the exact device response(s) as a JSON array and suppress normal 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)