
💥 stackoverflow-cli
- Search any query inside your terminal
- Top 10 threads
- Order the results in ascending/descending order
- Sort the results via relevance/votes/activity/creation
↓ INSTALL
# install the cli globally
npm i -g cli-stackoverflow
# use it via npx
npx cli-stackoverflow
⚡️ USAGE
You can run the CLI by executing the following commands inside the terminal:
stack
📃 Guide
- Right → key – Next thread
- Left ← key – Prev thread
- Up ↑ key – Next Answer
- Down ↓ key – Prev Answer
🏳 Flags
# CLI help
stack --help

# Order results in ascending order
stack --asc
# Sort results according to the most activity
stack --activity
# Sort results according to votes
stack --votes
# Sort results according to the creation
stack --creation
👨🏻💻 Teammates
We are from Pod 1.1.0.
How we built it
We used Node.js to bring this CLI to life. We also used several open-source packages available on npmjs.com to implement certain functionalities. While building this CLI, we made sure the CLI has the following characteristics:
- Clean user interface
- Great user experience
- Easy to use
Challenges we ran into
None of us had previous experience with writing tests. So it was one of the blockers for us. Also, it was quite difficult to implement navigation between threads and answers.
Accomplishments that I'm proud of
We are proud of the following:
- Have a production-ready MVP that is published on npmjs.com
- Figuring out how to implement the navigation functionalities in terminal
- The tests we wrote
- Cleaning the API result body that had a lot of irrelevant stuff
What I learned
Working with Node.js to build CLIs are quite easy. So we learned how to build a production-ready CLIs in Node.js and then how to publish them on npmjs.
What's next for stackoverflow-cli
We are open for suggestions and would love some constructive criticism.

Log in or sign up for Devpost to join the conversation.