Skip to main content

Ghostbit CLI — create end-to-end encrypted pastes from the terminal

Project description

Ghostbit CLI

Command-line tool for Ghostbit — a self-hosted, end-to-end encrypted paste service.

All content is encrypted in the client before being sent to the server. The server never sees your plaintext.

Install

pip install ghostbit-cli

Usage

# Paste from stdin
cat file.py | gb

# Paste a file (language auto-detected from extension)
gb file.py

# With options
gb file.py --lang python --burn --expires 3600

# Password-protected paste
echo "secret" | gb --password mysecret

# Output JSON (includes full URL with decryption key)
cat data.json | gb --json

# Point to your self-hosted instance
gb config set server https://paste.example.com

Options

Flag Short Description
--lang -l Language hint (python, go, rust, …)
--expires -e TTL in seconds (3600 = 1h, 86400 = 1d)
--burn -b Delete after the first view
--max-views -m Delete after N views
--password -p Encrypt with a password
--server -s Override server URL for this call
--quiet -q Print URL only
--json Print full JSON response

Configuration

gb config set server https://paste.example.com
gb config show
gb config unset server

Config is stored at ~/.config/ghostbit.toml.

Self-hosting

See the Ghostbit server repository for Docker and manual setup instructions.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghostbit_cli-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghostbit_cli-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ghostbit_cli-1.0.0.tar.gz.

File metadata

  • Download URL: ghostbit_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghostbit_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 29f1cbb9d9d4bc70f7194ab01803f7644598ce1d2f4b3dec900cab21d983ceed
MD5 2e0b0c48d56e5d60769bf2c9b008b40a
BLAKE2b-256 e0d7b60e8521939fe4bc2004a7790426480c68602854b747af13c05555153e52

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostbit_cli-1.0.0.tar.gz:

Publisher: release.yml on stackopshq/ghostbit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ghostbit_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ghostbit_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghostbit_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 118f98ce420fceae11b2d8651d343293b7bb0ea47faf76be3dd07aac49d9aea8
MD5 1d09530de93cda70c27c7606be5389a9
BLAKE2b-256 577c2d8ee251e1bcdefc56d649f2c36748f8967a98e67a90384d26f39ef6259e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostbit_cli-1.0.0-py3-none-any.whl:

Publisher: release.yml on stackopshq/ghostbit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page