Skip to content

About

Official VoidPaste CLI — create, fetch, list, and delete pastes from the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

VoidPaste CLI

Command-line client for VoidPaste.

Install

Homebrew on macOS or Linux:

brew install fleames/tap/voidpaste
voidpaste version

Scoop on Windows:

scoop bucket add fleames https://github.com/fleames/scoop-bucket
scoop install fleames/voidpaste
voidpaste version

You can also install a release archive directly. Download the archive for your OS and architecture from GitHub Releases. Every release includes SHA256SUMS, an SPDX JSON SBOM, and GitHub build provenance. Verify the checksum before extracting:

# Linux amd64 example (change OS/architecture as needed)
version=v0.4.1
curl -fLO "https://github.com/fleames/voidpaste-cli/releases/download/${version}/voidpaste_${version}_linux_amd64.tar.gz"
curl -fLO "https://github.com/fleames/voidpaste-cli/releases/download/${version}/SHA256SUMS"
grep "voidpaste_${version}_linux_amd64.tar.gz" SHA256SUMS | sha256sum -c -
tar -xzf "voidpaste_${version}_linux_amd64.tar.gz"
install -m 0755 "voidpaste_${version}_linux_amd64/voidpaste" "$HOME/.local/bin/voidpaste"
voidpaste version
# Windows amd64 example
$version = "v0.4.1"
$archive = "voidpaste_${version}_windows_amd64.zip"
Invoke-WebRequest "https://github.com/fleames/voidpaste-cli/releases/download/$version/$archive" -OutFile $archive
Invoke-WebRequest "https://github.com/fleames/voidpaste-cli/releases/download/$version/SHA256SUMS" -OutFile SHA256SUMS
$expected = ((Select-String -Path SHA256SUMS -Pattern ([regex]::Escape($archive))).Line -split '\s+')[0]
$actual = (Get-FileHash $archive -Algorithm SHA256).Hash.ToLowerInvariant()
if ($actual -ne $expected) { throw "checksum mismatch" }
Expand-Archive $archive -DestinationPath .

With the GitHub CLI, the cryptographically signed provenance can also be checked:

gh attestation verify "voidpaste_v0.4.1_linux_amd64.tar.gz" --repo fleames/voidpaste-cli

go install remains supported for users with Go 1.23+:

go install github.com/fleames/voidpaste-cli/cmd/voidpaste@v0.4.1

# Optional short alias (same binary)
ln -sf "$(which voidpaste)" "$(dirname "$(which voidpaste)")/vp"

The WinGet manifest is under review and will be documented only after it is accepted into the community repository.

Docs: https://voidpaste.com/docs/cli · Integrations: https://voidpaste.com/docs/integrations

Both voidpaste and vp (when symlinked) run the same CLI. There is no separate vp install path yet — do not invent commands that are not implemented.

This directory (monorepo)

apps/cli is the development copy for VoidPaste contributors who have access to the private monorepo. Keep it in sync with github.com/fleames/voidpaste-cli when changing CLI behavior.

  • Canonical for releases / go install: fleames/voidpaste-cli
  • Canonical for day-to-day product work: this tree (then publish a sync)

Build locally

go build -C apps/cli -o voidpaste ./cmd/voidpaste
# Windows: go build -C apps/cli -o voidpaste.exe ./cmd/voidpaste

Publish a sync to the public repo

Copy cmd/voidpaste/*, go.mod (module path github.com/fleames/voidpaste-cli), and go.sum into a checkout of fleames/voidpaste-cli, run go test ./..., commit, tag, and push. Bump the install help string in commands.go if it still points at the private path.

Auth

  1. Sign in at https://voidpaste.com and create a key under Dashboard → API Keys.
  2. Default scopes (pastes:read, pastes:write) are required for list/create/delete.
voidpaste auth login --key vp_live_…
voidpaste whoami

Credentials are stored in:

Platform Path
Linux/macOS ~/.config/voidpaste/config.json
Windows %AppData%\voidpaste\config.json

Override with env:

Variable Meaning
VP_API_KEY Bearer API key (preferred)
VP_TOKEN Alias of VP_API_KEY
VP_API API origin (default https://voidpaste.com)
VP_CONFIG_DIR Config directory override

Self-hosters: voidpaste --api https://paste.example.com … or store the origin via voidpaste auth login --api https://paste.example.com --key ….

Commands

# Anonymous or authenticated create
echo 'hello' | voidpaste create --language go --expiration 1d
voidpaste create ./notes.md --title "Notes" --visibility unlisted

# Fetch
voidpaste get PASTE_ID
voidpaste raw PASTE_ID
voidpaste download PASTE_ID -o out.txt
voidpaste raw PASTE_ID --password 'secret'   # password pastes

# Account pastes (API key required)
voidpaste list
voidpaste delete PASTE_ID --yes

# Collections / versions (API key required)
voidpaste collection list
voidpaste collection create --name "Snippets" --visibility private
voidpaste collection add COLLECTION_ID PASTE_ID
voidpaste versions list PASTE_ID
voidpaste versions restore PASTE_ID 2

# Health / identity
voidpaste status
voidpaste whoami

Paste create flags: --visibility, --expiration / --expires, --password, --burn, --language / --lang, --title, --stdin, --quiet / -q (URL only), --idempotency-key, --json ({paste, warnings}).

API surface used

CLI HTTP
status GET /health, optional GET /api/v1/auth/me
whoami GET /api/v1/auth/me
create POST /api/v1/pastes
get GET /api/v1/pastes/{id}
raw GET /raw/{id}
download GET /download/{id}
list GET /api/v1/me/pastes
delete DELETE /api/v1/pastes/{id}
collection * /api/v1/collections…
versions * /api/v1/pastes/{id}/versions…

Auth header: Authorization: Bearer vp_live_…. Password pastes: X-Paste-Password.

Not implemented (no fake stubs): billing, moderation — use the API docs or web dashboard.

Tests

cd apps/cli && go test ./...

About

Official VoidPaste CLI — create, fetch, list, and delete pastes from the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages