Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including buttercms-cli with all npm packages installed. Try it out:

var buttercmsCli = require("buttercms-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

buttercms-cli v0.0.4

Generate the boilerplate code for a blog and pages using ButterCMS for multiple languages and frameworks

Quickly launch new projects integrated with ButterCMS

oclif Version Downloads/week License

* [Quickly launch new projects integrated with [ButterCMS](https://buttercms.com)](#quickly-launch-new-projects-integrated-with-butter-cms-https-buttercms-com) * [Supported Languages + Frameworks](#supported-languages-frameworks) * [Usage](#usage) * [Commands](#commands)

Supported Languages + Frameworks

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

Usage

```sh-session $ npm install -g buttercms-cli $ buttercms COMMAND running command... $ buttercms (-v|--version|version) buttercms-cli/0.0.4 darwin-x64 node-v9.8.0 $ buttercms --help [COMMAND] USAGE $ buttercms COMMAND ... ```

Commands

* [`buttercms generate:blog`](#buttercms-generateblog) * [`buttercms generate:page`](#buttercms-generatepage) * [`buttercms generate:pages`](#buttercms-generatepages) * [`buttercms help [COMMAND]`](#buttercms-help-command)

buttercms generate:blog

USAGE
  $ buttercms generate:blog

OPTIONS
  --auth_token=auth_token  (required) Your AUTH token used to communicate with ButterCMS API
  --for=express            Target destination for the generator command

See code: src/commands/generate/blog.js

buttercms generate:page

USAGE
  $ buttercms generate:page

OPTIONS
  --auth_token=auth_token  (required) Your AUTH token used to communicate with ButterCMS API
  --for=express            Target destination for the generator command
  --page=page              (required) Indicates the slug assigned to the new page

See code: src/commands/generate/page.js

buttercms generate:pages

USAGE
  $ buttercms generate:pages

OPTIONS
  --auth_token=auth_token  (required) Your AUTH token used to communicate with ButterCMS API
  --for=express            Target destination for the generator command
  --page_type=page_type    The page type your blog will be listing

See code: src/commands/generate/pages.js

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

See code: @oclif/plugin-help

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free