devto-cli

Crates.iodevto-cli
lib.rsdevto-cli
version0.3.1
sourcesrc
created_at2022-04-25 08:26:12.478745
updated_at2022-07-04 07:02:51.598328
descriptionA CLI tool to manage dev.to articles
homepagehttps://github.com/ken-matsui/devto-cli#readme
repositoryhttps://github.com/ken-matsui/devto-cli/
max_upload_size
id573708
size51,816
Ken Matsui (ken-matsui)

documentation

https://docs.rs/devto-cli

README

devto-cli crates.io version crates.io downloads

A CLI tool to manage dev.to articles similar to Zenn CLI

Installation

You can install this using the cargo install command:

$ cargo install devto-cli

Configuration

You need to export your dev.to token to use.

$ export DEVTO_TOKEN=your_token

Or you can pass the token as an option:

$ 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

$ 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

devto-content/$ devto new your-new-article-title

Delete an unpublished article

devto-content/$ devto delete your-unpublised-article-title

Preview a draft article

devto-content/$ devto preview your-draft-article-title

Contribution

Build

$ cargo build

Or you can directly execute the binary:

$ cargo run

Test

$ cargo build
$ cargo test

Publish

GitHub Releases

$ git tag v0.1.0
$ git push origin v0.1.0

crates.io

$ cargo publish

References

Commit count: 85

cargo fmt