poseidonos-cli completion

Generate completion script


Completion command generates an auto completion script for bash, zsh, fish, or powershell.

To load completions:


$ source <(poseidonos-cli completion bash)

# To enable auto completions for every session, execute the following: # Linux: $ sudo -s $ poseidonos-cli completion bash > /etc/bash_completion.d/poseidonos-cli $ exit $ exec bash (restart session).

# macOS: $ poseidonos-cli completion bash > /usr/local/etc/bash_completion.d/poseidonos-cli


# If shell completion is not already enabled in your environment, # you will need to enable it. You can execute the following once:

$ echo “autoload -U compinit; compinit” » ~/.zshrc

# To load completions for each session, execute once: $ poseidonos-cli completion zsh > “${fpath[1]}/_poseidonos-cli”

If the command above does not work, try $ poseidonos-cli completion zsh > “/usr/local/share/zsh/site-functions/_poseidonos-cli”

# You will need to start a new shell for this setup to take effect.


$ poseidonos-cli completion fishsource

# To load completions for each session, execute once: $ poseidonos-cli completion fish > ~/.config/fish/completions/poseidonos-cli.fish


PS> poseidonos-cli completion powershellOut-StringInvoke-Expression

# To load completions for every new session, run: PS> poseidonos-cli completion powershell > poseidonos-cli.ps1 # Add source /yourpath/poseidonos-cli.ps1 file from your PowerShell profile.

poseidonos-cli completion [bash|zsh|fish|powershell]


  -h, --help   help for completion

Options inherited from parent commands

      --debug         Print response for debug.
      --fs string     Field separator for the output. (default "|")
      --ip string     Set IPv4 address to PoseidonOS for this command. (default "")
      --json-req      Print request in JSON form.
      --json-res      Print response in JSON form.
      --port string   Set the port number to PoseidonOS for this command. (default "18716")
      --unit          Display unit (B, KB, MB, ...) when displaying capacity.


  • poseidonos-cli - poseidonos-cli - A command-line interface for PoseidonOS

Samsung Electronics © 2022. All rights reserved.