DEV Community

Cover image for πŸŽπŸ’DevTo CLIπŸ’πŸŽ: A Valentine's Day Gift To My Favorite People
Sarthak Sharma for XenoX

Posted on

πŸŽπŸ’DevTo CLIπŸ’πŸŽ: A Valentine's Day Gift To My Favorite People

Hey Dev Community! Will you be my Valentine? Don't say no. Look, I even brought you a gift and everything! πŸ˜˜πŸ˜‡

Haha! Okay, enough theatrics. I wanted to show you guys something really cool that my team and I have been working on for the past few days. DevTo CLI is a way to access Dev.to right from your terminal.

Us programmers, we really love the command line interface, don't we? That simple, unobtrusive, precise nature of it is what draws us in. GUIs just don't scratch the same itch! And that's exactly why I liked the idea behind HashnodeCLI so much when it released last month. It inspired me to take things a step further and make DevTo CLI.

It's super simple and powerful. You can fetch top posts, posts by an author, posts under a tag, latest posts and even more - all of this right in your terminal window. And the best thing? It's opensource! So you all are not only free to, but encouraged to add more features to it!

Key Features

1. Check the top posts

You can get top posts from the Dev.to feed in your terminal using:

devto

2. Check top posts by tag

Easy post search using the tag, you can use

devto tag javascript

if you don't know the keyword, you can use the search tag feature using

devto tag

3. Check recent posts by any author

You can check 5 most recent posts of any author using

devto author sarthology

4. Check top posts by timeline

You can check top posts on Dev.to for a specific timeframe using

devto top week

There are several options like week month year infinity. If you want to see the options just type

devto top

5. Search top posts by a keyword

Use the powerful search feature to find posts using keywords

devto search sarthology

With this, you can even search posts using a tag, author name, title... basically anything.

6. Check latest posts on Dev.to

You can also see the latest posts on Dev.to using

devto latest


GitHub logo teamxenox / devtocli

πŸ‘©πŸ»β€πŸ’» Browse and Search Dev.to Posts from Command Line

Dev.to CLI

Wanted to get Dev.to on your terminal? Ahoy! now you can.

Usage

1. Check the top posts

You can get top posts from the Dev.to feed in your terminal using:

devto

2. Check top posts by tag

Easy post search using the tag, you can use

devto tag javascript

if you don't know the keyword, you can use the search tag feature using

devto tag

3. Check recent posts by any author

You can check 5 most recent posts of any author using

devto author sarthology

4. Check top posts

You can check top posts on Dev.to using

devto top

If you want top posts for a specific timeframe, just type in

devto top week

There are several options like week month year infinity. If you want to see the options just type

5. Search top posts by a keyword

Use the powerful search feature to find…

So this is DevTo CLI. I would love to hear what you guys think of this, and suggest new ideas for what else we could add to this! Share your thoughts in the comments!

And hey, tell your friends about it too! It's all about sharing the loooovvveeee! πŸ’–

Latest comments (58)

Collapse
 
abhinav profile image
Abhinav Kumar • Edited

Great stuff! I myself was waiting for the official API to do some similar thing.

Hey @ben !

Collapse
 
jsm91 profile image
Jesse

This is great :D, awesome job man!

Collapse
 
sarthology profile image
Sarthak Sharma

Thanks Steven 😊

Collapse
 
tterb profile image
Brett Stevenson • Edited

This is awesome! I ⭐️ the repo a while back to see where it would go, so I'm excited to see it come to fruition.

Let me know if you're ever looking for contributors!

Collapse
 
sarthology profile image
Sarthak Sharma

Oh yes, I do need contributors always. 😊

Collapse
 
bogdaaamn profile image
Bogdan Covrig

Brave work! Maybe it's about time to get that dev.to API, isn't it @ben ?

Also, what plugin are you using for autocomplete in terminal?

Collapse
 
sarthology profile image
Sarthak Sharma

Thanks dude and this is the plugin.

Collapse
 
sarthology profile image
Sarthak Sharma

Thanks sky 😊

Collapse
 
sammyisa profile image
Sammy Israwi

Oooh so cool! Nice work!

Collapse
 
sarthology profile image
Sarthak Sharma

thanks :)

Collapse
 
thebrown profile image
Saleumsack

Very great! :D

Collapse
 
sarthology profile image
Sarthak Sharma

Thanks

Collapse
 
biros profile image
Boris Jamot ✊ /

But why Node.js ?? πŸ˜‰

Collapse
 
sarthology profile image
Sarthak Sharma

That's the fastest way I could build it and I love node. πŸ˜ƒ

Collapse
 
biros profile image
Boris Jamot ✊ /

I would have done it in PHP. 😁

Thread Thread
 
sarthology profile image
Sarthak Sharma

See, preferences brother πŸ˜ƒ

Thread Thread
 
biros profile image
Boris Jamot ✊ /

No, in fact I would have done it in Go.
PHP for a CLI, it's not serious (except for learning purpose)!

Thread Thread
 
sarthology profile image
Sarthak Sharma

Yeah, go is good for cli.

Thread Thread
 
qm3ster profile image
Mihail Malo

When API is out, RIIR :v

Collapse
 
nguyenquangtin profile image
Tony Tin Nguyen

Great, thanks for your work.

Collapse
 
sarthology profile image
Sarthak Sharma

:)

Collapse
 
biros profile image
Boris Jamot ✊ /

Great idea, definitely need to try this!

Collapse
 
bananabrann profile image
Lee

The thing I didn't know I wanted until I had it... How cool! Is there a command to read the article within the CLI?

Collapse
 
sarthology profile image
Sarthak Sharma

Not yet but surely can make it. Though you guys won't be able to see images.

Collapse
 
treddson profile image
Taylor Short

absolute glory. Hope to contribute at some point!

Collapse
 
sarthology profile image
Sarthak Sharma

Awesome 😱

Collapse
 
jess profile image
Jess Lee

πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘

Collapse
 
sarthology profile image
Sarthak Sharma

😊

Collapse
 
siatwe profile image
Simon Weis

Nice!

Collapse
 
jacksonelfers profile image
Jackson Elfers

This is why I love this site. Great work.😁

Collapse
 
sarthology profile image
Sarthak Sharma

Thanks Jackson