https://github.com/zoedsoupe/devit
commandline utility that lets you publish your markdown posts to dev.to without leaving your comfy terminal
https://github.com/zoedsoupe/devit
cli elixir elixir-lang utilities
Last synced: 4 months ago
JSON representation
commandline utility that lets you publish your markdown posts to dev.to without leaving your comfy terminal
- Host: GitHub
- URL: https://github.com/zoedsoupe/devit
- Owner: zoedsoupe
- License: mit
- Created: 2023-04-29T17:32:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T16:52:30.000Z (over 1 year ago)
- Last Synced: 2025-03-28T20:59:58.223Z (about 1 year ago)
- Language: Rust
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Devit

> publish your markdown to dev.to, from cli
devit is commandline utility that lets you publish your markdown documents
without leaving your comfy terminal.
## Install
You could download the latest release at [Releases page](https://github.com/zoedsoupe/devit/releases)
or build it via `nix-flake`
```sh
nix build github:zoedsoupe/devit
```
## Configure
devit requires dev.to API key to be able to publish your markdown.
You can generate API key from the dev.to [settings](https://dev.to/settings/account)
page.
Export this integration token by adding it to your `~/.bashrc`, `~/.zshrc` or
`~/.config/fish/config.fish` as follows
- bash and zsh
```sh
export DEVTO_API_KEY="api_key"
```
- fish
```fish
set DEVTO_API_KEY "api_key"
```
Now you are good to go...
## Publishing
For publishing, your markdown doc must have the following frontmatter:
```yaml
---
title: My Awesome Post
tags: some, tags, here
published: true | false
---
## markdown here
```
If your post contains images, host them somewhere public and then include them
in your document like so:
```markdown

```
Dev.to will then CDN it and you can delete it from there if you want to.
When you’re ready to publish, run
```console
$ devit --publish
Done! Your post has been published at https://dev.to/example/76272e9d241c
```
It’s that simple.
## Inspiration
This project is completely based on [mdm](https://github.com/pavanjadhaw/mdm)!
I really liked of the idea and tried to implement in Rust and also give
a try on dev.to API!
## License
MIT © Zoey Pessanha