Skip to main content

A command-line tool for uploading assets to an assets server.

Project description

This is intended to be a simple command-line tool for uploading assets to an assets server.


Snap install

On a snap-enabled system, you can simply:

sudo snap install upload-assets

Pip install

If you can’t install the snap, you can install with pip.

First install python3 pip, then:

sudo pip3 install canonicalwebteam.upload-assets


You should now have access to the upload-assetscommand:

$ upload-assets  \
    --api-url  \
    --api-token XXXXXXXX  \
    {"url": "", "filepath": "/home/robin/EXAMPLE_IMAGE.png"},
    {"url": "", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE1.png"},
    {"url": "", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE2.png"}


To avoid specifying them every time, you can store both the URL and the token for the assets API in environment variables:

$ export UPLOAD_ASSETS_API_TOKEN=<api-token>
$ upload-assets EXAMPLE_IMAGE.png

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canonicalwebteam.upload-assets-0.2.1.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page