DEV Community

Aditya Sorathiya
Aditya Sorathiya

Posted on

I added an interactive dashboard to the PasteDB CLI — manage pastes from your terminal

PasteDB CLI

just got a new interactive dashboard! 🚀 Browse, navigate, open, delete, and refresh your pastes directly from the terminal — without constantly switching to the browser.

I've been working on PasteDB, a paste-sharing platform for code, notes, text, and more.

Today I added something I've wanted in the CLI for a while:

🗂️ An interactive paste dashboard — directly in the terminal

Instead of running separate commands every time I want to manage a paste, I can now run:

pdb pastes
Enter fullscreen mode Exit fullscreen mode

and get an interactive dashboard showing my pastes.

It looks something like this:

╭──────────────────────────────────────────────────────────────╮
│                         PasteDB                              │
│                       Your Pastes                            │
╰──────────────────────────────────────────────────────────────╯

  3 pastes

  ❯ app.py
      ID:       abc123
      Language: python
      Preview:  print("Hello from PasteDB!")

    website.html
      ID:       xyz789
      Language: html
      Preview:  <!DOCTYPE html>...

    notes.md
      ID:       note456
      Language: markdown
      Preview:  My project notes...

──────────────────────────────────────────────────────────────
↑ ↓ Navigate   O Open   d Delete   r Refresh   q Quit
Enter fullscreen mode Exit fullscreen mode

What can it do?

⬆️⬇️ Navigate through your pastes

🌐 Open the selected paste in your browser

🗑️ Delete a paste directly from the dashboard

🔄 Refresh the list without restarting the CLI

🔐 Handle encrypted/private paste data without dumping the encrypted objects into the terminal

📋 Show useful information such as the paste ID, language, title, and preview

The goal is to make the CLI feel less like a collection of commands and more like a small terminal application.

Why did I add this?

Previously, managing several pastes from the CLI meant remembering individual commands and paste IDs.

Now I can simply run:

pdb pastes
Enter fullscreen mode Exit fullscreen mode

and navigate through everything from one place.

I'm still improving it. I initially experimented with adding search to the dashboard, but I've temporarily removed it while I work on making the handling of encrypted/private pastes more robust.

PasteDB CLI is built with Node.js and is available on npm.

If you're interested in trying it:

npm install -g pastedb-cli
Enter fullscreen mode Exit fullscreen mode

Then:

pdb auth
pdb pastes
Enter fullscreen mode Exit fullscreen mode

I'd love to hear what other features would make a terminal-based paste manager more useful.

Want to view Docs?See them here
https://pastedb.netlify.app/cli
Source Code:
https://github.com/sorathiya903/pastedb-cli
NPM JS : https://www.npmjs.com/package/pastedb-cli

Top comments (0)