ruby-v ~< 2.50
gem install json)
Generate an API key
Goto: settings -> account -> DEV Community API Keys
<api_key> to your buffer
Add this line at the end of your
Copy this gist into
sudo cp publish /usr/local/bin/
sudo chmod +x /usr/local/bin/publish
Do a test run:
publish hello_world.md DEVTO_KEY
If it worked; Great! If it didn't, leave a comment where you got stuck.
NOTE: In order to make your post public; make sure to set
published: true so that it shows on your dashboard. You can only add maximum of 4 tags when adding tags. Titles can not have special characters otherwise you will have formatting issues.
Here's the formatting I use:
--- title: Hello World, published: true, tags: ["helloworld", "100daysofcode"] --- Your content goes here