Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ken-matsui/devto-cli
A CLI tool to manage dev.to articles similar to Zenn CLI
https://github.com/ken-matsui/devto-cli
Last synced: about 1 month ago
JSON representation
A CLI tool to manage dev.to articles similar to Zenn CLI
- Host: GitHub
- URL: https://github.com/ken-matsui/devto-cli
- Owner: ken-matsui
- License: mit
- Created: 2022-04-25T07:09:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-05T10:09:24.000Z (over 1 year ago)
- Last Synced: 2024-11-18T19:08:53.096Z (about 2 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/devto-cli
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devto-cli [![crates.io version](https://img.shields.io/crates/v/devto-cli.svg)](https://crates.io/crates/devto-cli) [![crates.io downloads](https://img.shields.io/crates/d/devto-cli.svg)](https://crates.io/crates/devto-cli)
A CLI tool to manage dev.to articles similar to [Zenn CLI](https://www.npmjs.com/package/zenn-cli)
## Installation
You can install this using the `cargo install` command:
```bash
$ cargo install devto-cli
```## Configuration
You need to export your dev.to token to use.
```bash
$ export DEVTO_TOKEN=your_token
```Or you can pass the token as an option:
```bash
$ devto new your-new-article-title --devto-token your_token
```### Obtain a dev.to token
1. Go to `Settings` > `Account` > `DEV Community API Keys`
2. Enter description and click on `Generate API Key`## Generate a repository template
```bash
$ devto start
Creating `devto-content` ...You can now start writing your articles:
cd devto-content
git init
devto new your-article-title
```## Create a new article
```bash
devto-content/$ devto new your-new-article-title
```## Delete an unpublished article
```bash
devto-content/$ devto delete your-unpublised-article-title
```## Preview a draft article
```bash
devto-content/$ devto preview your-draft-article-title
```## Contribution
### Build
```bash
$ cargo build
```Or you can directly execute the binary:
```bash
$ cargo run
```### Test
```bash
$ cargo build
$ cargo test
```### Publish
#### [GitHub Releases](https://github.com/ken-matsui/jyt/tags)
```bash
$ git tag v0.1.0
$ git push origin v0.1.0
```#### [crates.io](https://crates.io/)
```bash
$ cargo publish
```### References
* https://developers.forem.com/api