Skip to content

mlafeldt/ck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ck - The ConvertKit Tool

Build Status GoDoc

Access the ConvertKit API from the command line.

Installation

If you're on Mac OS X, the easiest way to get the ck command-line tool is via Homebrew:

brew tap mlafeldt/formulas
brew install cktool

You can also build the tool from source, provided you have Go installed:

go get -u github.com/mlafeldt/ck

Usage

Usage:
  ck [command]

Available Commands:
  help        Help about any command
  subscribers List subscribers
  version     Show program version

Flags:
      --api-endpoint string   Set ConvertKit API endpoint
      --api-key string        Set API key for ConvertKit account
      --api-secret string     Set API secret for ConvertKit account
  -h, --help                  help for ck

Use "ck [command] --help" for more information about a command.

The tool understands these environment variables:

  • CONVERTKIT_API_KEY - the same as --api-key
  • CONVERTKIT_API_SECRET - the same as --api-secret
  • CONVERTKIT_API_ENDPOINT - the same as --api-endpoint

Go library

In addition to the CLI tool, the project also provides the convertkit Go library for use in other Go projects. To install it from source:

go get -u github.com/mlafeldt/ck/convertkit

For usage and examples, see the Godoc documentation.

Author

This project is being developed by Mathias Lafeldt.