Skip to content
upload images to from your command line.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Add .editorconfig file Jan 31, 2019
.eslintrc Use babel-eslint as eslint parser Feb 2, 2019
.gitignore Ignore dist directory Jan 31, 2019
.npmignore Add source directory to .npmignore Feb 2, 2019
package-lock.json 1.2.0 Jul 9, 2019
package.json 1.2.0 Jul 9, 2019 Added IMGUR_CLIENT_ID configurable variable option Jun 20, 2019


Upload images to from the command line.


$ npm install -g imgur-upload-cli


$ imgur-upload --help

  Upload images to imgur from the command line

  Upload images:
    $ imgur-upload path/to/image.jpg
    $ imgur-upload path/to/image-one.jpg path/to/image-two.jpg
    $ imgur-upload path/to/*.jpg

  Upload latest image in a directory:
    $ imgur-upload latest path/to/directory
      (if directory is not passed, defaults to the base directory)

  Get base directory:
    $ imgur-upload basedir

  Set base directory:
    $ imgur-upload basedir path/to/base-directory

  View upload history:
    $ imgur-upload history

  Clear upload history:
    $ imgur-upload clear

  Remove uploaded image by deletehash:
    $ imgur-upload remove thedeletehash
      (the deletehash can be obtained from the history command)

  Available options:
    -d, --delete    Delete local image files after they get uploaded

Rate limits

Note there are some rate limits with the API. The daily upload limit is shared by everyone using the same client ID, so if you're using the provided one and start to get errors, you might consider using your own client ID, which can be set using an environment variable:

export IMGUR_CLIENT_ID=xxxxxxxxxxxxxxxx



You can’t perform that action at this time.