ezgh fleets scripts create <name> --file path [--shell sh|bash] [--param spec]... [flags]Save a script as its version 1: its body from --file (- reads stdin), run with --shell (sh, the default, or bash). Each --param declares a parameter the script reads as EZGH_PARAM_<NAME>: name[:string|integer|boolean][:required][=default], for example service:string:required or force:boolean=false. A version never changes once saved; new-version saves another.
Part of ezgh fleets scripts.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description |
string | what it does | |
--file |
string | the script’s body (- reads stdin) | |
--param |
string, repeatable | a parameter, name[:type][:required][=default] (repeat) | |
--shell |
string | sh |
the shell it runs with: sh or bash |
This command also takes the global flags.