https://github.com/equk/gatsby-new-post-cli
:newspaper: cli script for creating markdown posts using core nodejs (no deps)
https://github.com/equk/gatsby-new-post-cli
cli frontmatter gatsby gridsome markdown new-post
Last synced: 2 months ago
JSON representation
:newspaper: cli script for creating markdown posts using core nodejs (no deps)
- Host: GitHub
- URL: https://github.com/equk/gatsby-new-post-cli
- Owner: equk
- License: mit
- Created: 2019-07-09T09:42:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T10:24:03.000Z (almost 7 years ago)
- Last Synced: 2025-03-17T20:14:37.399Z (over 1 year ago)
- Topics: cli, frontmatter, gatsby, gridsome, markdown, new-post
- Language: JavaScript
- Homepage: https://equk.co.uk/2019/07/06/gatsby-new-post-cli-script
- Size: 3.91 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-new-post-cli
CLI script for creating markdown posts using core nodejs features.
No extra dependencies required.
More detailed information can be found on my blog article: [Gatsby New Post CLI Script](https://equk.co.uk/2019/07/06/gatsby-new-post-cli-script)
**License:** MIT
# Requirements
- NodeJS
# Usage
Place the script into the base directory your gatsby project.
Check your posts folder is configured correctly (change `blogPostFolder` if required)
Execute script & fill out the Post Title
```bash
$ ./newpost.js
Post Title:
```
The script should create a markdown file with frontmatter filled out.
```bash
$ ./newpost.js
Post Title:test
Post test was created successfully
Location: ./content/posts/2019-07-09-test.md
```
# Contact
Website: https://equk.co.uk
Twitter: [@equilibriumuk](https://twitter.com/equilibriumuk)