Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vicradon/hashnode-cli

Command line utilities for interacting with Hashnode.
https://github.com/vicradon/hashnode-cli

Last synced: 25 days ago
JSON representation

Command line utilities for interacting with Hashnode.

Awesome Lists containing this project

README

        

# hashnode-cli

Command line utilities for interacting with Hashnode.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/hashnode-cli.svg)](https://npmjs.org/package/hashnode-cli)
[![Downloads/week](https://img.shields.io/npm/dw/hashnode-cli.svg)](https://npmjs.org/package/hashnode-cli)
[![License](https://img.shields.io/npm/l/hashnode-cli.svg)](https://github.com/vicradon/hashnode-cli/blob/master/package.json)

* [hashnode-cli](#hashnode-cli)
* [Usage](#usage)
* [Commands](#commands)

# Usage

```sh-session
$ 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`](#hashnode-cli-create-post)
* [`hashnode-cli goals`](#hashnode-cli-goals)
* [`hashnode-cli help [COMMAND]`](#hashnode-cli-help-command)
* [`hashnode-cli login`](#hashnode-cli-login)

## `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](https://github.com/vicradon/hashnode-cli/blob/v1.0.0/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](https://github.com/vicradon/hashnode-cli/blob/v1.0.0/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](https://github.com/oclif/plugin-help/blob/v3.2.1/src/commands/help.ts)_

## `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](https://github.com/vicradon/hashnode-cli/blob/v1.0.0/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](https://hashnode.com/code-of-conduct). 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.