A CLI tool to upload screenshots (and other files) to cloud storage and get direct URLs. Supports Dropbox and Droplr as backends.
cargo install --path .- Go to https://www.dropbox.com/developers/apps
- Click Create app
- Choose Scoped access and Full Dropbox
- Under Permissions, enable
files.content.writeandsharing.write - Copy the App key from the Settings tab
shotty config set backend dropbox
shotty config set dropbox.app_key YOUR_APP_KEYshotty authThis opens a browser for Dropbox OAuth authorization using PKCE.
shotty config set backend droplrshotty authThis prompts for your Droplr email and password. Credentials are stored securely in the system keyring.
Upload a file:
shotty upload screenshot.pngUpload from stdin:
cat image.png | shotty upload --name image.pngUpload and copy URL to clipboard:
shotty upload screenshot.png --copyShow current config:
shotty config showPrint config file path:
shotty config pathThe config file location is platform-specific. Use shotty config path to check.
cargo build
cargo test
cargo fmt
cargo clippy --all-targets -- -D warnings