Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-tool-cli

kienmatu133MIT1.3.1

A CLI to create new post in gatsbyjs project

cli, gatsby-tool-cli, gatsby-post-cli, gtc, gatsby

readme

GATSBY TOOL CLI

For creating new post easier

npm versioninstall sizenpm downloads

Default project structure should be:
|-- /content
    |-- /posts

After the first run, edit the config at gatsby-tool-cli.json

New post will be placed at: /{{postsFolder}}/yyyy/mm-dd-title-slug

Command:

gtc-new : create new post

Run the command above first time to init the config file, then edit it.

node ./bin/gtc-new.js