shelly plugin create
shelly plugin create#
Create a new extension scaffold
Synopsis#
Create a new extension scaffold with boilerplate code.
Supported languages:
- bash (default): Shell script extension
- go: Go language extension
- python: Python extension
The extension will be created in the current directory or the directory
specified with –output.
1
| shelly plugin create <name> [flags]
|
Examples#
1
2
3
4
5
6
7
8
| # Create a bash extension
shelly extension create myext
# Create a Go extension
shelly extension create myext --lang go
# Create in specific directory
shelly extension create myext --output ~/projects
|
Options#
1
2
3
| -h, --help help for create
-l, --lang string Extension language (bash, go, python) (default "bash")
-o, --output string Output directory (default ".")
|
Options inherited from parent commands#
1
2
3
4
5
6
7
8
9
10
11
| --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
--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#