20 releases (breaking)

new 0.22.0 Feb 10, 2025
0.21.0 Sep 20, 2024
0.20.0 Jul 14, 2022
0.15.0 Mar 31, 2022
0.2.0 Jul 31, 2021

#818 in Magic Beans

Download history 55/week @ 2024-10-28 40/week @ 2024-11-04 62/week @ 2024-11-11 255/week @ 2024-11-18 114/week @ 2024-11-25 113/week @ 2024-12-02 20/week @ 2024-12-09 26/week @ 2024-12-16 3/week @ 2024-12-30 99/week @ 2025-01-06 121/week @ 2025-01-13 95/week @ 2025-01-20 188/week @ 2025-01-27 160/week @ 2025-02-03 185/week @ 2025-02-10

629 downloads per month

Apache-2.0

230KB
4.5K SLoC

icx-asset

A command line tool to manage an asset storage canister.

icx-asset sync

Synchronize one or more directories to an asset canister.

Usage: icx-asset sync <canister id> <source directory>...

Example:

# same asset synchronization as dfx deploy for a default project, if you've already run dfx build
$ icx-asset --pem ~/.config/dfx/identity/default/identity.pem sync <canister id> src/prj_assets/assets dist/prj_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


Dependencies

~46–66MB
~1.5M SLoC