|
| 1 | +## ovhcloud completion |
| 2 | + |
| 3 | +Generate shell completion scripts |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Generate shell completion scripts for ovhcloud CLI. |
| 8 | + |
| 9 | +To load completions in your current shell session: |
| 10 | + |
| 11 | + bash: |
| 12 | + source <(ovhcloud completion bash) |
| 13 | + |
| 14 | + zsh: |
| 15 | + source <(ovhcloud completion zsh) |
| 16 | + |
| 17 | + fish: |
| 18 | + ovhcloud completion fish | source |
| 19 | + |
| 20 | +To make completions permanent, run: |
| 21 | + |
| 22 | + ovhcloud completion install |
| 23 | + |
| 24 | + |
| 25 | +``` |
| 26 | +ovhcloud completion [bash|zsh|fish|powershell] [flags] |
| 27 | +``` |
| 28 | + |
| 29 | +### Options |
| 30 | + |
| 31 | +``` |
| 32 | + -h, --help help for completion |
| 33 | +``` |
| 34 | + |
| 35 | +### Options inherited from parent commands |
| 36 | + |
| 37 | +``` |
| 38 | + -d, --debug Activate debug mode (will log all HTTP requests details) |
| 39 | + -e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution |
| 40 | + -o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax) |
| 41 | + Examples: |
| 42 | + --output json |
| 43 | + --output yaml |
| 44 | + --output interactive |
| 45 | + --output 'id' (to extract a single field) |
| 46 | + --output 'nested.field.subfield' (to extract a nested field) |
| 47 | + --output '[id, "name"]' (to extract multiple fields as an array) |
| 48 | + --output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object) |
| 49 | + --output 'name+","+type' (to extract and concatenate fields in a string) |
| 50 | + --output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields) |
| 51 | + --profile string Use a specific profile from the configuration file |
| 52 | +``` |
| 53 | + |
| 54 | +### SEE ALSO |
| 55 | + |
| 56 | +* [ovhcloud](ovhcloud.md) - CLI to manage your OVHcloud services |
| 57 | +* [ovhcloud completion install](ovhcloud_completion_install.md) - Install shell completion permanently in your shell rc file |
| 58 | + |
0 commit comments