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
-
Configure your API key:
snipserve config set-key YOUR_API_KEY
-
Set your instance URL (if not using default):
snipserve config set-url https://snipserve.spkal01.me
-
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 keysnipserve config set-url <url>- Set instance URLsnipserve config show- Show current configuration
Paste Management
snipserve create <title>- Create a new pastesnipserve get <paste-id>- View a pastesnipserve list- List your pastessnipserve update <paste-id>- Update a pastesnipserve 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 keySNIPSERVE_URL- Instance URLEDITOR- Preferred editor for--editorflag
License
MIT License
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdcf50e7caf5168e1643921f24fc1fb0415f96bc5cd62bdbab736c89ff1c7279
|
|
| MD5 |
b5df23f37acf317b17689b680505f816
|
|
| BLAKE2b-256 |
6db64b7fa5acfcf238b99f189474b4e978949bc90629873affa1bdc9c5d789f7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9876b9212fe1cbb400c85ccc0348637be48c7eccf4e7fece5bd4870863545a8c
|
|
| MD5 |
86386affcc2e21012edb53e2796cee0c
|
|
| BLAKE2b-256 |
bfef4fdb42555b6775a0134bdf9eb21d0eedd8f6e5eae00ac81d75c7024b5a8c
|