Command line utilities for interacting with Hashnode.
$ npm install -g hashnode-cli
$ hashnode-cli COMMAND
running command...
$ hashnode-cli (-v|--version|version)
hashnode-cli/1.0.0 linux-x64 node-v10.19.0
$ hashnode-cli --help [COMMAND]
USAGE
$ hashnode-cli COMMAND
...
Creates a post on your hashnode blog from a markdown file.
USAGE
$ hashnode-cli create-post
OPTIONS
-h, --help show CLI help
-t, --title=title post title
See code: src/commands/create-post.ts
Set your writing goals or retreive them
USAGE
$ hashnode-cli goals
OPTIONS
-h, --help show CLI help
-n, --new=new set a new writing goal
See code: src/commands/goals.ts
display help for hashnode-cli
USAGE
$ hashnode-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
authenticate the CLI by pasting your developer token
USAGE
$ hashnode-cli login
OPTIONS
-h, --help show CLI help
-t, --token=token Hashnode token from the developer settings
See code: src/commands/login.ts
- Add types to the inquirer-search-list package
- Add Delete functionality to the goals command
- Add cache invalidation to the tags
- Redirects users to login command if a token was revoked or expired
Hashnode delists posts that don't adhere to the community guidelines. This usually hapens if your post is too short or off-topic. If you make too many posts in a short period, Hashnode will suspend your account. Please have this in mind when using this CLI.
The contributors to this CLI shall not be held responsible if any Hashnode account is suspended due to the use of this CLI.