Skip to content

EgoDevs/assets_sync

Repository files navigation

assets_sync

Syncing script used for assets_canister

before run

  1. credentials/whitelist.pem added secp256k1 pem
  2. authorize whitelist.pem principal to target canister

bootstrap

pnpm script:bootstrap

Usage

# 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]

principal

node dist/index.js --principal # local

download

node 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 # production

sync

node 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

About

Syncing script used for assets_canister

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors