Part of PasteFox Extensions · pastefox.com
Share code and text snippets to PasteFox from the command line.
npm install -g pastefox-cliOr use without installing:
npx pastefox-cli create myfile.pypastefox login pk_your_api_key_hereGet your API key at pastefox.com/dashboard/api-keys.
# Create paste from file (language auto-detected)
pastefox create main.py
# Pipe content
cat error.log | pastefox create --title "Error log" --expires 1h
# Create private paste with expiration
pastefox create secret.txt -v private -e 1d
# Fetch paste content to stdout
pastefox get abc123
# Save paste to file
pastefox get abc123 > output.py
# List your pastes
pastefox list
# Delete a paste
pastefox delete abc123
# View or update config
pastefox config
pastefox config --url https://paste.yourdomain.com
pastefox config --visibility PRIVATE --expires 7d| Command | Aliases | Description |
|---|---|---|
create <file> |
c, new, push |
Create paste from file or stdin |
get <slug> |
g, fetch, read |
Fetch paste content to stdout |
list |
ls, l |
List your pastes |
delete <slug> |
del, rm |
Delete a paste |
login <key> |
auth |
Save API key |
logout |
Remove API key | |
config |
settings |
View or update settings |
| Flag | Short | Description |
|---|---|---|
--title |
-t |
Paste title |
--visibility |
-v |
PUBLIC, UNLISTED, or PRIVATE |
--language |
-l |
Language (auto-detected from file extension) |
--expires |
-e |
10m, 1h, 1d, 7d, 30d, or never |
Settings stored in ~/.pastefox/config.json. Environment variables:
| Variable | Description |
|---|---|
PASTEFOX_API_KEY |
API key (overrides config file) |
PASTEFOX_URL |
Instance URL (overrides config file) |
- VS Code / Kiro — share from your editor
- Chrome Extension — share from Chrome
- Firefox Extension — share from Firefox
- IntelliJ Plugin — share from JetBrains IDEs
- GitHub Action — share from CI/CD workflows
MIT