inkdrop-cli
v1.0.3
Published
Terminal CLI for InkDrop paste sharing
Readme
inkdrop-cli
Developer CLI for InkDrop — create, store, and share text and code snippets directly from your terminal.
Installation
npm install -g inkdrop-cliOr run on-demand with npx:
npx inkdrop-cli paste file.jsUsage
1. Uploading Pastes (drop paste)
# Upload a file
drop paste server.js
# Upload with a custom title
drop paste server.js --title "Server Setup"
# Set expiration duration (e.g., 30m, 3hrs, 1d)
drop paste config.json --time 3hrs
# Protect with a password
drop paste secret.env --password mypassword
# Burn after reading (single view, auto-destructs)
drop paste secret.txt --burn
# Pipe output from terminal commands
cat error.log | drop paste --title "Crash Log" --time 1d2. Fetching Pastes (drop fetch)
# Print formatted paste to terminal
drop fetch Ab3XkL
# Print raw content (useful for piping into scripts)
drop fetch Ab3XkL --raw
# Copy content directly to your system clipboard
drop fetch Ab3XkL --copy
# Save to a numbered file (e.g. drop1.js, drop2.py based on syntax)
drop fetch Ab3XkL --new
# Save to a specific filename
drop fetch Ab3XkL --new-file my-script
# Fetch password-protected paste
drop fetch Ab3XkL --password mypassword --copy3. Searching Pastes (drop search)
# List all recent public pastes (paginated)
drop search
# Search public pastes by keyword, title, or ID
drop search react
# Open search results in your default web browser
drop search react --open
# Copy top result directly to clipboard (prompts if multiple matches)
drop search react --copy
# Paginate through search results
drop search --page 2 --limit 10Options & Flags
| Flag | Short | Description |
|------|-------|-------------|
| --password <str> | -p | Set or supply password for paste |
| --time <duration> | -t | Expiration time (30m, 3hrs, 1d, 7days) |
| --language <str> | -l | Explicitly specify language syntax (defaults to file ext or text) |
| --burn | -b | Self-destruct paste after single read |
| --title <str> | | Set custom paste title |
| --raw | -r | Output raw plain text to stdout |
| --copy | -c | Copy paste text to system clipboard (in search: copies top result or prompts) |
| --open | -o | Open search results page in default browser |
| --page <num> | | Specify page number for search results (default: 1) |
| --limit <num> | | Specify results per page (default: 10, max: 50) |
| --new | -n | Save paste as drop1.<ext> |
| --new-file <name> | | Save paste as <name>.<ext> |
| --api <url> | | Override backend API URL |
| --help | -h | Display help and usage |
License
ISC
