Skip to main content

Command-line interface for SnipServe paste service

Project description

README.md

SnipServe CLI

A command-line interface for SnipServe, allowing you to manage pastes from your terminal.

Installation

pip install snipserve-cli

Quick Start

  1. Configure your API key:

    snipserve config set-key YOUR_API_KEY
    
  2. Set your instance URL (if not using default):

    snipserve config set-url https://snipserve.spkal01.me
    
  3. Create a paste:

    # From command line
    snipserve create "My Title" --content "Hello, world!"
    
    # From file
    snipserve create "Config File" --file config.json
    
    # Using editor
    snipserve create "My Script" --editor
    
    # From stdin
    echo "Hello, world!" | snipserve create "Piped Content"
    

Commands

Configuration

  • snipserve config set-key <api-key> - Set your API key
  • snipserve config set-url <url> - Set instance URL
  • snipserve config show - Show current configuration

Paste Management

  • snipserve create <title> - Create a new paste
  • snipserve get <paste-id> - View a paste
  • snipserve list - List your pastes
  • snipserve update <paste-id> - Update a paste
  • snipserve delete <paste-id> - Delete a paste

User Information

  • snipserve whoami - Show current user info

Examples

# Create from file with hidden flag
snipserve create "Secret Config" --file ~/.ssh/config --hidden

# Update paste content using editor
snipserve update abc123def --editor

# Create from command output
ls -la | snipserve create "Directory Listing"

# Quick paste from clipboard (macOS)
pbpaste | snipserve create "Clipboard Content"

Environment Variables

  • SNIPSERVE_API_KEY - Your API key
  • SNIPSERVE_URL - Instance URL
  • EDITOR - Preferred editor for --editor flag

License

MIT License

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

snipserve_cli-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

snipserve_cli-1.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snipserve_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for snipserve_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fdcf50e7caf5168e1643921f24fc1fb0415f96bc5cd62bdbab736c89ff1c7279
MD5 b5df23f37acf317b17689b680505f816
BLAKE2b-256 6db64b7fa5acfcf238b99f189474b4e978949bc90629873affa1bdc9c5d789f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snipserve_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for snipserve_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9876b9212fe1cbb400c85ccc0348637be48c7eccf4e7fece5bd4870863545a8c
MD5 86386affcc2e21012edb53e2796cee0c
BLAKE2b-256 bfef4fdb42555b6775a0134bdf9eb21d0eedd8f6e5eae00ac81d75c7024b5a8c

See more details on using hashes here.

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