DEV Community

Cover image for I Built PasteDB CLI in 1 Day β€” Upload Files to the Web with pdb create πŸš€
Aditya Sorathiya
Aditya Sorathiya

Posted on

I Built PasteDB CLI in 1 Day β€” Upload Files to the Web with pdb create πŸš€

Want to do this?

pdb create app.py
Enter fullscreen mode Exit fullscreen mode

…and have your file uploaded online with a shareable PasteDB link returned instantly?

Now it's possible. πŸš€

I built PasteDB CLI in just 1 day β€” a lightweight command-line tool for developers to upload files, retrieve pastes, update them, delete them, explore public pastes, and manage API keys without leaving the terminal.

The CLI is built with JavaScript / Node.js and connects directly to the PasteDB API.

⚑ What it can do

pdb create app.py
Enter fullscreen mode Exit fullscreen mode

Upload a local file and get a PasteDB link.

pdb get abc123
Enter fullscreen mode Exit fullscreen mode

Fetch a paste directly from the terminal.

pdb update abc123 app.py
Enter fullscreen mode Exit fullscreen mode

Update an existing paste.

pdb delete abc123
Enter fullscreen mode Exit fullscreen mode

Delete a paste.

It also includes API-key authentication, public paste exploration, code execution support, and other developer-focused commands.

πŸ›  Tech Stack
JavaScript / Node.js
The goal was to keep the CLI simple, fast, and easy to use while making PasteDB accessible directly from the terminal.

πŸ”— Check it out
Source code: https://github.com/sorathiya903/pastedb-cli⁠
CLI documentation: https://pastedb.netlify.app/cli

This was a one-day build, and I'm planning to keep improving the CLI with more developer-friendly features.
What would you want to see added to a my pastebin CLI? πŸ‘€

Top comments (0)