anytourl
v0.1.0
Published
CLI tool for AnyToURL - upload files, save text, shorten URLs
Downloads
92
Maintainers
Readme
anytourl
CLI tool for AnyToURL — upload files, save text, and shorten URLs from your terminal.
Install
npm install -g anytourlSetup
anytourl config set apiUrl https://anytourl.com
anytourl config set apiKey sk-your-api-keyCommands
Upload files
# Upload a file
anytourl upload photo.png
# Upload multiple files
anytourl upload file1.txt file2.pdf
# Upload from stdin
cat image.png | anytourl upload -
echo "hello" | anytourl upload --filename hello.txt
# Quiet mode (URL only, great for scripting)
anytourl upload photo.png -qText paste
# Inline text
anytourl text -c "Hello, world!"
# From file
anytourl text -f notes.md
# From stdin (pipe)
cat log.txt | anytourl text
echo "quick note" | anytourl text -t "My Note"Shorten URL
anytourl url https://very-long-url.example.com/pathAccount info
anytourl whoamiShows your plan, quota usage, and available features.
Configuration
anytourl config list # Show current config
anytourl config set <key> <value>
anytourl config get <key>
anytourl config delete <key>
anytourl config clear # Remove all configOptions
All commands support:
| Flag | Description |
|------|-------------|
| -u, --api-url <url> | Override API URL |
| -k, --api-key <key> | Override API key |
| -q, --quiet | Only output URLs |
| -j, --json | JSON output |
License
MIT
