Syncing script used for assets_canister
credentials/whitelist.pemadded secp256k1 pem- authorize
whitelist.pemprincipal to target canister
pnpm script:bootstrap# after bootstrap
node dist/index.js -h # show help
Options
--version show version [boolean]
--from sync from canister id [string]
--to sync to canister id [string]
--saveTo save saveTo to [string, default to `./sync_folder`]
--principal get principal from pem [boolean]
--download download [boolean]
--sync sync [boolean]
-h, --help show help [boolean]
node dist/index.js --principal # localnode dist/index.js --download --from=q3fc5-haaaa-aaaaa-aaahq-cai # local
NODE_ENV=production node dist/index.js --download --from=q3fc5-haaaa-aaaaa-aaahq-cai # productionnode dist/index.js --sync --to=q3fc5-haaaa-aaaaa-aaahq-cai # local
NODE_ENV=production node dist/index.js --sync --to=q3fc5-haaaa-aaaaa-aaahq-cai # production