Webpaste
Upload code snippets, git diffs, command logs, or text files to https://pastes.dev.
When to use
- Share code snippets, traces, logs, or diffs via a web URL.
- Upload file contents or pipe stdin to pastes.dev.
- Inspect or retrieve existing pastes by key.
Public entrypoint
uv run --script <skill-dir>/scripts/cli.py [OPTIONS] [FILE]
Common calls
# Upload a file (language inferred from file extension)
webpaste src/server.ts
# Pipe stdin with explicit language or shebang detection
git diff | webpaste -l diff
# Upload with JSON output for machine consumers
webpaste --json src/config.json
# Fetch / read raw content of an existing paste by key
webpaste --get <key>
# Target a custom base URL
webpaste --base-url http://localhost:8080/data/ src/app.py
Options
FILE: Path to local file. Reads from stdin if omitted or -.
-l, --lang: Explicit syntax language or alias (e.g. python, py, ts, diff, json, rust, shell, yaml, plain).
--json: Output result as JSON {"key": "...", "url": "...", "raw_url": "..."}.
--raw: Output only the paste key.
--raw-url: Output direct raw content URL.
--get <KEY>: Fetch and print content of an existing paste.
--base-url <URL>: API base URL (default: https://api.pastes.dev/).
--user-agent <UA>: User-Agent header string (default: webpaste-cli/0.1.0).
--timeout <SEC>: Network timeout in seconds (default: 15).
--no-gzip: Disable request body compression.
Supported languages
plain, log, yaml, json, xml, ini, java, javascript, typescript, python, kotlin, scala, cpp, csharp, shell, ruby, rust, sql, go, lua, swift, c, html, css, scss, php, graphql, diff, dockerfile, markdown, proto.
Exit codes
0: Success.
1: Network, HTTP, or API error.
2: File not found or invalid arguments.
1---2name: webpaste3description: "Use to upload code, diffs, logs, or text to pastes.dev via CLI or stdin with automatic syntax highlighting."4license: AGPL-3.0-or-later5metadata:6 author: anonymous7---89# Webpaste1011Upload code snippets, git diffs, command logs, or text files to https://pastes.dev.1213## When to use1415- Share code snippets, traces, logs, or diffs via a web URL.16- Upload file contents or pipe stdin to pastes.dev.17- Inspect or retrieve existing pastes by key.1819## Public entrypoint2021```bash22uv run --script <skill-dir>/scripts/cli.py [OPTIONS] [FILE]23```2425## Common calls2627```bash28# Upload a file (language inferred from file extension)29webpaste src/server.ts3031# Pipe stdin with explicit language or shebang detection32git diff | webpaste -l diff3334# Upload with JSON output for machine consumers35webpaste --json src/config.json3637# Fetch / read raw content of an existing paste by key38webpaste --get <key>3940# Target a custom base URL41webpaste --base-url http://localhost:8080/data/ src/app.py42```4344## Options4546- `FILE`: Path to local file. Reads from `stdin` if omitted or `-`.47- `-l`, `--lang`: Explicit syntax language or alias (e.g. `python`, `py`, `ts`, `diff`, `json`, `rust`, `shell`, `yaml`, `plain`).48- `--json`: Output result as JSON `{"key": "...", "url": "...", "raw_url": "..."}`.49- `--raw`: Output only the paste key.50- `--raw-url`: Output direct raw content URL.51- `--get <KEY>`: Fetch and print content of an existing paste.52- `--base-url <URL>`: API base URL (default: `https://api.pastes.dev/`).53- `--user-agent <UA>`: User-Agent header string (default: `webpaste-cli/0.1.0`).54- `--timeout <SEC>`: Network timeout in seconds (default: 15).55- `--no-gzip`: Disable request body compression.5657## Supported languages5859`plain`, `log`, `yaml`, `json`, `xml`, `ini`, `java`, `javascript`, `typescript`, `python`, `kotlin`, `scala`, `cpp`, `csharp`, `shell`, `ruby`, `rust`, `sql`, `go`, `lua`, `swift`, `c`, `html`, `css`, `scss`, `php`, `graphql`, `diff`, `dockerfile`, `markdown`, `proto`.6061## Exit codes6263- `0`: Success.64- `1`: Network, HTTP, or API error.65- `2`: File not found or invalid arguments.