A simple command-line pastebin tool for developers. Create, retrieve, update and delete code and text pastes without leaving your terminal.
$ pdb create app.py Uploading app.py... ✓ Paste created! https://pastedb.netlify.app/paste/abc123
PasteDB CLI brings common pastebin and code-sharing workflows directly to your command line.
Upload source code, text and other files directly from your computer using a simple CLI command.
Designed for developers who prefer working from terminals, shells and command-line environments.
PasteDB CLI detects common programming languages from file extensions when creating a paste.
Authenticate the CLI using a PasteDB API key and keep your credentials available for future commands.
Send supported source code to PasteDB's execution service directly from your terminal.
Browse publicly available PasteDB content without opening the web application.
Install the command-line tool and start managing PasteDB pastes from your terminal.
Manage your pastes, account and API keys from one command-line interface.
pdb auth
pdb create app.py
pdb get abc123
pdb update abc123 app.py
pdb delete abc123
pdb explore
pdb me
pdb run python app.py
pdb check-id my-project
pdb key create my-laptop pdb key list pdb key delete <key>
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.
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.
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 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.
Install the PasteDB CLI and start sharing and managing code without leaving your command line.
Get Started