|
| 1 | +--- |
| 2 | +title: "Command - devspace completion" |
| 3 | +sidebar_label: devspace completion |
| 4 | +--- |
| 5 | + |
| 6 | + |
| 7 | +Output shell completion for the given shell (bash or zsh) |
| 8 | + |
| 9 | +## Synopsis |
| 10 | + |
| 11 | + |
| 12 | + ``` |
| 13 | +devspace completion SHELL [flags] |
| 14 | +``` |
| 15 | +
|
| 16 | +``` |
| 17 | +Outputs shell completion for the given shell (bash or zsh) |
| 18 | + |
| 19 | + This depends on the bash-completion binary. Example installation instructions: |
| 20 | + OS X: |
| 21 | + $ brew install bash-completion |
| 22 | + $ source $(brew --prefix)/etc/bash_completion |
| 23 | + $ devspace completion bash > ~/.devspace-completion # for bash users |
| 24 | + $ devspace completion zsh > ~/.devspace-completion # for zsh users |
| 25 | + $ source ~/.devspace-completion |
| 26 | + Ubuntu: |
| 27 | + $ apt-get install bash-completion |
| 28 | + $ source /etc/bash-completion |
| 29 | + $ source <(devspace completion bash) # for bash users |
| 30 | + $ source <(devspace completion zsh) # for zsh users |
| 31 | + |
| 32 | + Additionally, you may want to output the completion to a file and source in your .bashrc |
| 33 | +``` |
| 34 | +
|
| 35 | +
|
| 36 | +## Flags |
| 37 | +
|
| 38 | +``` |
| 39 | + -h, --help help for completion |
| 40 | +``` |
| 41 | +
|
| 42 | +
|
| 43 | +## Global & Inherited Flags |
| 44 | +
|
| 45 | +``` |
| 46 | + --config string The devspace config file to use |
| 47 | + --debug Prints the stack trace if an error occurs |
| 48 | + --disable-profile-activation If true will ignore all profile activations |
| 49 | + --inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems (default 180) |
| 50 | + --kube-context string The kubernetes context to use |
| 51 | + -n, --namespace string The kubernetes namespace to use |
| 52 | + --no-warn If true does not show any warning when deploying into a different namespace or kube-context than before |
| 53 | + -p, --profile strings The DevSpace profiles to apply. Multiple profiles are applied in the order they are specified |
| 54 | + --profile-parent strings One or more profiles that should be applied before the specified profile (e.g. devspace dev --profile-parent=base1 --profile-parent=base2 --profile=my-profile) |
| 55 | + --profile-refresh If true will pull and re-download profile parent sources |
| 56 | + --restore-vars If true will restore the variables from kubernetes before loading the config |
| 57 | + --save-vars If true will save the variables to kubernetes after loading the config |
| 58 | + --silent Run in silent mode and prevents any devspace log output except panics & fatals |
| 59 | + -s, --switch-context DEPRECATED: Switches and uses the last kube context and namespace that was used to deploy the DevSpace project |
| 60 | + --var strings Variables to override during execution (e.g. --var=MYVAR=MYVALUE) |
| 61 | + --vars-secret string The secret to restore/save the variables from/to, if --restore-vars or --save-vars is enabled (default "devspace-vars") |
| 62 | +``` |
| 63 | +
|
0 commit comments