Crates.io | icx-asset |
lib.rs | icx-asset |
version | 0.21.0 |
source | src |
created_at | 2021-07-31 00:39:22.145646 |
updated_at | 2024-09-20 19:25:12.643073 |
description | CLI tool to manage assets on an asset canister on the Internet Computer. |
homepage | |
repository | https://github.com/dfinity/sdk |
max_upload_size | |
id | 429481 |
size | 129,427 |
icx-asset
A command line tool to manage an asset storage canister.
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
List assets in the asset canister.
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