imgur-upload
uploads images to Imgur from the command line
TLDR
SYNOPSIS
imgur-upload [-d] file ...imgur-upload command [argument]
DESCRIPTION
imgur-upload (from the imgur-upload-cli npm package) uploads images anonymously to Imgur through the Imgur API and prints the resulting link. It keeps a local history including the deletehash needed to remove an upload later.
PARAMETERS
file ...
Image files to upload. One file prints the image link; several files are uploaded as an album.latest [directory]
Upload the most recent image in directory, or in the base directory if omitted.basedir [directory]
Show or set the base directory.history
Show previous uploads with their deletehashes.clear
Clear the upload history.remove deletehash
Delete an uploaded image from Imgur.-d, --delete
Delete local image files after they are uploaded.
CONFIGURATION
IMGUR_CLIENT_ID
Use your own Imgur API client ID instead of the built-in shared one.
EXAMPLE SCRIPT
# Screenshot, upload and copy the link
scrot /tmp/screenshot.png
url=$(imgur-upload /tmp/screenshot.png)
echo "$url" | xclip -selection clipboard
notify-send "Uploaded: $url"
CAVEATS
Install with npm install -g imgur-upload-cli. The daily API upload limit is shared by everyone using the built-in client ID; set IMGUR_CLIENT_ID if uploads start failing. The project has not been updated since 2021. Several unrelated Imgur uploader scripts exist under similar names with different options. Imgur may remove content that violates its terms, and has blocked access from the UK since 2025.
HISTORY
imgur-upload-cli was written by Arnelle Balane and first published to npm in 2016.
