Skip to content
CLI tool for ButterCMS using OClif
Branch: master
Clone or download
Pull request Compare This branch is 7 commits ahead of deleteman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
.editorconfig
.gitignore
README.md
package.json

README.md

Quickly launch new projects integrated with ButterCMS

oclif Version Downloads/week License

Supported Languages + Frameworks

  • Express.js
  • More coming soon... (want to see yours? Open a Github Issue to let us know)

Usage

$ npm install -g buttercms-cli
$ buttercms --help [COMMAND]

Commands

buttercms generate:blog

Create a brand new blog with a set of sample templates

USAGE
  $ buttercms generate:blog

OPTIONS
  --for=target  Target tech stack to generate the blog for (currently available: express)
  --auth_token=token The Auth token provided by ButterCMS, this CLI will auto-populate your configuration file with it

buttercms generate:page

Create a new page inside your blog, based on the page you configured on ButterCMS

USAGE
  $ buttercms generate:page

OPTIONS
  --for=target  Target tech stack to generate the blog for (currently available: express)
  --page=page 	The slug of the page you want to retrieve
  --auth_token=token The Auth token provided by ButterCMS, this CLI will auto-populate your configuration file with it

buttercms generate:pages

Create a list of links for the same type of page

USAGE
  $ buttercms generate:pages

OPTIONS
  --for=target  Target tech stack to generate the blog for (currently available: express)
  --page_type=type 	The slug for the page type you previously created in ButterCMS
  --auth_token=token The Auth token provided by ButterCMS, this CLI will auto-populate your configuration file with it

``


## `buttercms help [COMMAND]`

display help for buttercms

USAGE $ buttercms help [COMMAND]

ARGUMENTS COMMAND command to show help for

OPTIONS --all see all commands in CLI

<!-- commandsstop -->
You can’t perform that action at this time.