Devto a cli for dev.to
This is a work in progress so don't a expect a full support for Dev API(beta).
Table of contents
Build
make build
or
go build -o devto
NOTE: First make sure you have golang installed
Install
make install
Manpage
This is just optional
sudo make manpage
Bash autocompletion
Also optional
make bash_autocompletion
source $HOME/.bashrc
Create articles
Listings
Articles
- Get articles
- Get articles by username
- Get articles with queries
- Get articles by ID
- Get articles with videos
- Get articles of authenticated user
- Get all articles of authenticated user
- Get published articles of authenticated user
- Get unpublished articles of authenticated user
- Create article
- Update article
- Retrieve comments on an article or a podcast.
- Retrieve comments with its children comments.
- Retrieve all the availables tags. An api_key is required, so make sure you provide one with
auth
command.
- Retrieve tags that I follow. An api_key is required, so make sure you provide one with
auth
command.
Followers
- Retrieve my followers. An api_key is required, so make sure you provide one with
auth
command.
Listings
- Retrieve listing availables.
- Create a listing.
- Update a listing.
- Reading a given listing by its id.
Organizations
- Retrieve organization by username.
- Retrieve users on an organization.
- Retrieve listing on an organization.
- Retrieve articles belonging to an organization.
Podcasts
- Retrieve podcast availables.
Reading Lists
- Retrieve reading lists availables.
Webhooks. Need to be authenticated
- Retrieve webhooks they have previously registered.
- Retrieve webhooks by id
- Create webhooks
- Delete webhook
Profile Images
- Retrieve retrieve a user or organization profile image information by its corresponding username
Commands
Auth
Articles
- Retrieve articles
- Retrieve articles with queries
- Retrieve articles by username
- Retrieve articles by username with queries
./devto articles gealber -q
- Retrieve articles by id
- Retrieve body of an article
- Get articles of authenticated user
- Get published articles of authenticated user
- Get unpublished articles of authenticated user
- Get all articles of authenticated user
- Retrieve articles with videos
- Create an article
- Update a given article
./devto articles update <id>
- Retrieve comments on article and podcast
./devto comments -a_id <id>
./devto comments -p_id <id>
- Retrieve comments given an id.
./devto comments -id <id>
- Retrieve all tags. An api_key is required, so make sure you provide one with
auth
command.
- Retrieve tags that I follows. An api_key is required, so make sure you provide one with
auth
command.
Followers
- Retrieve my followers. An api_key is required, so make sure you provide one with
auth
command.
Listings
- Retrieve listing availables.
- Create a listing.
- Update a listing.
./devto listings update <id>
- Reading a given listing by its id.
./devto listings retrieve <id>
Organizations
- Retrieve organization by username.
./devto organizations <username>
- Retrieve users on an organization.
./devto organizations <username> -u
- Retrieve listing on an organization.
./devto organizations <username> -l
- Retrieve articles belonging to an organization.
./devto organizations <username> -a
Podcasts
- Retrieve podcast availables.
Reading Lists
- Retrieve podcast availables.
Webhooks
NOTE: Need to be authenticated
- Retrieve webhooks they have previously registered.
- Retrieve webhooks by id
- Create webhooks
- Delete webhook
./devto webhooks delete <id>
Profile Images
- Retrieve retrieve a user or organization profile image information by its corresponding username
./devto profile_images <username>
Valid aclaration
The field body_markdown
on operations like the creation of an article, expect a path to a markdown file.
With the content of the article you want to published.
TODO
From now on, I need to refactor.
- REFACTOR, REFACTOR AND REFACTOR.