icx-asset 0.3.0

CLI tool to manage assets on an asset canister on the Internet Computer.
icx-asset-0.3.0 is not a library.

icx-asset

A command line tool to manage an asset storage canister.

icx-asset sync

Synchronize a directory to an asset canister.

Usage: icx-asset sync <directory>

Example:

# same asset synchronization as dfx deploy
$ icx-asset sync src/<project>/assets   

icx-asset ls

List assets in the asset canister.

icx-asset upload

Usage: icx-asset upload [<key>=]<file> [[<key>=]<file> ...]

Examples:

# upload a single file as /a.txt
$ icx-asset upload a.txt

# upload a single file, a.txt, under another name
$ icx-asset upload /b.txt=a.txt

# upload a directory and its contents as /some-dir/*
$ icx-asset upload some-dir

# Similar to synchronization with dfx deploy, but without deleting anything:
$ icx-asset upload /=src/<project>/assets