1.0.0 • Published 3 years ago

hashnode-cli v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

hashnode-cli

Command line utilities for interacting with Hashnode.

oclif Version Downloads/week License

Usage

$ 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
...

Commands

hashnode-cli create-post

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

hashnode-cli goals

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

hashnode-cli help [COMMAND]

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

hashnode-cli login

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

Todo

  1. Add types to the inquirer-search-list package
  2. Add Delete functionality to the goals command
  3. Add cache invalidation to the tags
  4. Redirects users to login command if a token was revoked or expired

Disclaimer

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.