ic-oss-cli

Crates.ioic-oss-cli
lib.rsic-oss-cli
version0.9.10
sourcesrc
created_at2024-05-23 08:02:38.221387
updated_at2024-11-24 14:57:34.999978
descriptionA command-line tool implemented in Rust for the ic-oss cluster.
homepage
repositoryhttps://github.com/ldclabs/ic-oss/tree/main/src/ic_oss_cli
max_upload_size
id1249270
size109,890
0xZensh (zensh)

documentation

README

ic-oss-cli

License Crates.io Test Docs.rs Latest Version

ic-oss is a decentralized Object Storage Service on the Internet Computer.

ic-oss-cli is a command-line tool implemented in Rust for the ic-oss cluster.

Usage

Install:

cargo install ic-oss-cli
# get help info
ic-oss-cli --help
ic-oss-cli identity --help
ic-oss-cli upload --help

# Generate a new identity
ic-oss-cli identity --new --path myid.pem
# Output:
# principal: lxph3-nvpsv-yrevd-im4ug-qywcl-5ir34-rpsbs-6olvf-qtugo-iy5ai-jqe
# new identity: myid.pem

Build from source:

git clone https://github.com/ldclabs/ic-oss.git
cd ic-oss
# build
cargo build -p ic-oss-cli --release
# get help info
target/release/ic-oss-cli --help

Upload a file to the local canister:

ic-oss-cli -i myid.pem put -b mmrxu-fqaaa-aaaap-ahhna-cai --path test.tar.gz

Upload a file to the mainnet canister:

ic-oss-cli -i myid.pem put -b mmrxu-fqaaa-aaaap-ahhna-cai --path test.tar.gz --ic

Add a wasm file to the cluster:

ic-oss-cli -i debug/uploader.pem cluster-add-wasm -c x5573-nqaaa-aaaap-ahopq-cai --path target/wasm32-unknown-unknown/release/ic_oss_bucket.wasm

License

Copyright © 2024 LDC Labs.

ldclabs/ic-oss is licensed under the MIT License. See LICENSE for the full license text.

Commit count: 0

cargo fmt