PasteDB CLI v0.1.1

PasteDB, from your terminal.

A simple command-line pastebin tool for developers. Create, retrieve, update and delete code and text pastes without leaving your terminal.

terminal
$ pdb create app.py

Uploading app.py...

 Paste created!

https://pastedb.netlify.app/paste/abc123

Everything you need in the terminal

PasteDB CLI brings common pastebin and code-sharing workflows directly to your command line.

Quick Paste Creation

Upload source code, text and other files directly from your computer using a simple CLI command.

Developer Friendly

Designed for developers who prefer working from terminals, shells and command-line environments.

Automatic Language Detection

PasteDB CLI detects common programming languages from file extensions when creating a paste.

🔑

API Key Authentication

Authenticate the CLI using a PasteDB API key and keep your credentials available for future commands.

Run Code

Send supported source code to PasteDB's execution service directly from your terminal.

🌎

Explore Public Pastes

Browse publicly available PasteDB content without opening the web application.

Install PasteDB CLI

Install the command-line tool and start managing PasteDB pastes from your terminal.

Install with npm
npm install -g pastedb-cli
pdb --version

PasteDB CLI commands

Manage your pastes, account and API keys from one command-line interface.

pdb auth Authentication
pdb auth
pdb create Create
pdb create app.py
pdb get Retrieve
pdb get abc123
pdb update Update
pdb update abc123 app.py
pdb delete Delete
pdb delete abc123
pdb explore Explore
pdb explore
pdb me Account
pdb me
pdb run Code execution
pdb run python app.py
pdb check-id Custom ID
pdb check-id my-project
pdb key API keys
pdb key create my-laptop
pdb key list
pdb key delete <key>

What is PasteDB CLI?

PasteDB CLI is a command-line pastebin tool designed for developers who want to share code, text and files directly from a terminal. Instead of opening a browser every time you need to create a paste, the PasteDB command-line interface lets you work with pastes using simple commands.

The CLI can be useful when working with servers, development environments, scripts, code editors and terminal-based workflows. A local source file can be uploaded to PasteDB with a single command and the resulting paste URL can then be shared with others.

Pastebin from the command line

Traditional pastebin services are commonly used through a web browser. PasteDB CLI provides a terminal-based alternative for developers who want a faster way to create and manage code pastes.

Share code directly from your terminal

With PasteDB CLI, you can upload a local source file, automatically detect its language and receive a PasteDB URL. This makes it convenient for sharing snippets, debugging examples, configuration files and other developer content.

PasteDB CLI for developers

PasteDB CLI is built around a straightforward command structure. Developers can create, retrieve, update and delete pastes while also managing API keys and accessing their PasteDB account.

Why use PasteDB CLI?

  • Create code pastes without opening a browser.
  • Upload files directly from the terminal.
  • Automatically detect common programming languages.
  • Retrieve existing pastes using their IDs.
  • Update existing code pastes.
  • Manage PasteDB API keys from the command line.
  • Check custom paste IDs.
  • Run supported code through PasteDB.

Ready to use PasteDB from your terminal?

Install the PasteDB CLI and start sharing and managing code without leaving your command line.

Get Started