Shows script ID, name, enabled status, and running status. Scripts are
user-programmable JavaScript code that runs directly on the device for
automation and custom logic.
Output is formatted as a table by default. Use -o json or -o yaml for
structured output suitable for scripting.
# List all scripts
shelly script list living-room
# Output as JSON
shelly script list living-room -o json
# Get IDs of running scripts
shelly script list living-room -o json | jq -r '.[] | select(.running) | .id'
# Check if any script is running
shelly script list living-room -o json | jq -e 'any(.running)' > /dev/null && echo "Scripts running"
# Short form
shelly script ls living-room