Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vicradon/hashnode-cli
- Owner: vicradon
- License: mit
- Created: 2020-12-29T13:48:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-29T21:41:24.000Z (about 4 years ago)
- Last Synced: 2024-11-17T12:07:29.102Z (about 2 months ago)
- Language: TypeScript
- Size: 52.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-postOPTIONS
-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 goalsOPTIONS
-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 forOPTIONS
--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 loginOPTIONS
-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.