Skip to content

gocardless/cli-releases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gocardless CLI

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.

demo

Installation

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

macOS

Gocardless CLI is available on macOS via Homebrew:

brew install gocardless/taps/cli

Linux

Refer to the installation instructions for available Linux installation options.

Windows

Refer to the installation instructions for available Windows installation options.

Docker

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

Commands

The Gocardless CLI supports a broad range of commands. Below is some of the most used ones:

Documentation

For a full reference, see the CLI reference site

Feedback

For any feedback you might have for us, please open an issue within the repository.

License

Copyright (c) Gocardless. All rights reserved.

Licensed under the Apache License 2.0 license.