Getting Started
Install the AnyToURL CLI and upload your first file in 5 minutes.
Requirements
- Node.js 18 or later
- An AnyToURL account with API access
Install
npm install -g anytourlOr use it without installing:
npx anytourl upload photo.pngGet Your API Key
- Log in at anytourl.com
- Go to Settings → API Keys
- Click Create API Key and copy it
Keep your API key secret. Never commit it to version control.
Configure
Set your API URL and key so you don't need to pass them every time:
anytourl config set apiUrl https://anytourl.com
anytourl config set apiKey sk-your-api-keyVerify the configuration:
anytourl config listVerify Connection
anytourl whoamiYou should see your account info, plan details, and quota usage.
Your First Upload
anytourl upload photo.pngOutput:
✓ photo.png → https://anytourl.com/f/abc123 (1.2 MB)That's it. The URL is ready to share.
Next Steps
- Upload multiple files:
anytourl upload *.png - Create a text paste:
anytourl text -c "Hello, world!" - Shorten a URL:
anytourl url https://example.com/very/long/path - See all commands: Command Reference