The Gocardless CLI enables you to build and test your Gocardless integration right from the terminal.
A brief outline of things you can do with the CLI:
- Trigger events directly from terminal and test webhooks
- Transition payment objects from one state to another
- Create, retrieve, update, or delete API objects.
Gocardless CLI is available for macOS, Windows, and Linux for distros like Ubuntu, Debian, RedHat and CentOS.
Refer to the [getting started page] (https://developer.gocardless.com/getting-started/developer-tools/gocardless-cli/) for more on how to get started
Gocardless CLI is available on macOS via Homebrew:
brew install gocardless/taps/cli
Refer to the installation instructions for available Linux installation options.
Refer to the installation instructions for available Windows installation options.
The GC CLI is also available as a Docker image.
First set up a volume for the gc-cli container:
docker volume create gc_config
To login
docker run -v gc_config:/.gc-cli -p 8080:8080 --rm -it gocardless/gc-cli:latest login
Refer to the login instructions for other login variations
To run commands
```sh
alias gc="docker run -v gc_config:/.gc-cli --rm -it gocardless/gc-cli:latest"
gc [command]
## Usage
Once installed, you now have access to the `gc` command.
```sh-session
gc [command]
# Run `--help` for detailed information about CLI commands
gc [command] help
The Gocardless CLI supports a broad range of commands. Below is some of the most used ones:
For a full reference, see the CLI reference site
For any feedback you might have for us, please open an issue within the repository.
Copyright (c) Gocardless. All rights reserved.
Licensed under the Apache License 2.0 license.