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 anytourl
Or use it without installing:
npx anytourl upload photo.png
Get Your API Key
- Log in at anytourl.com
- Go to Settings → API Keys
- Click Create API Key and copy it
<Callout type="warn"> Keep your API key secret. Never commit it to version control. </Callout>
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-key
Verify the configuration:
anytourl config list
Verify Connection
anytourl whoami
You should see your account info, plan details, and quota usage.
Your First Upload
anytourl upload photo.png
Output:
✓ 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