Getting Started

CLI Reference

gocardless completion

Generate shell completion script

Synopsis

Generates shell completion script for the supported shells. See the examples for how to setup autocompletion for your shell.

gocardless completion [bash|zsh|fish|powershell]

Examples

#### Bash: $ source <(gc completion bash) # To load completions for each session, execute once: # Linux: $ gc completion bash > /etc/bash_completion.d/gc # macOS: $ gc completion bash > /usr/local/etc/bash_completion.d/gc #### Zsh: # 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: $ gc completion zsh > "${fpath[1]}/_gc" # You will need to start a new shell for this setup to take effect. #### fish: $ gc completion fish | source # To load completions for each session, execute once: $ gc completion fish > ~/.config/fish/completions/gc.fish #### PowerShell: PS> gc completion powershell | Out-String | Invoke-Expression # To load completions for every new session, run: PS> gc completion powershell > gc.ps1 # and source this file from your PowerShell profile.

Options

-h, --help help for completion

Options inherited from parent commands

--config string config file (default is $HOME/.gc-cli/config.json)

SEE ALSO

  • gocardless - A CLI to help you integrate GoCardless with your application
Need help?