DEV Community

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

Posted on

194 67

๐ŸŽ๐Ÿ’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! ๐Ÿ’–

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (58)

Collapse
 
rhymes profile image
rhymes โ€ข

This is neat!! Well done, I'll definitely try it :D

Though I think the enthusiasm made you forget to link the project :D

I have a question: how do you fetch the data since the API is not public yet? RSS? Scraping?

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Damn! Just added it.

Scraping.

Collapse
 
utkarsh profile image
Utkarsh Talwar โ€ข

YEAH BOIIIII!!!

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

I can imagine you all doing it. ๐Ÿ˜‚

Collapse
 
utkarsh profile image
Utkarsh Talwar โ€ข

Oh we totally did! ๐Ÿ˜‚

Collapse
 
joecannatti profile image
Joe Cannatti โ€ข

Great side benefit to this -- you can look like you're to non-programmers working when you're really just reading dev.to :)

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Exactly !!

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
 
tuandm profile image
Tuan Duong โ€ข

Great work! I will add PR to dev.to to change HTML structure ๐Ÿ˜ˆ

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Hahaha ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

Collapse
 
glennmen profile image
Glenn Carremans โ€ข

This is awesome โค๏ธ

Maybe add the repo url and/or installation instructions ๐Ÿ˜‰
Does it work on all platforms? macOS, Linux, Windows

Not sure if it already does this, but maybe add a login option (API key) so it can get your personalised feed (tags/people you follow, + tag weight is different for everyone).

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

API for devto is not yet available. So for that we may have to wait.

Collapse
 
alin_air profile image
Alin Andrei โ€ข โ€ข Edited

Wot! this is too awesome. Like not just awesome. Hardcore awesome.

Ok hardcore sounds too much since it's also Valentine's.. u should get the idea tho :D

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Hahaha, yeah totally getting you bro.

Collapse
 
jess profile image
Jess Lee โ€ข

๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

๐Ÿ˜Š

Collapse
 
quantumsheep profile image
Nathanael Demacon โ€ข โ€ข Edited

All for our nerd cravings ๐Ÿค“

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Oh yeah !! ๐Ÿ˜€

Collapse
 
jsm91 profile image
Jesse โ€ข

This is great :D, awesome job man!

Collapse
 
sarthology profile image
Sarthak Sharma โ€ข

Thanks Steven ๐Ÿ˜Š

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay