@transcend-io/cli2
v0.0.8
Published
A command line interface for programmatic operations across Transcend.
Keywords
Readme
Transcend CLI
List arguments
CLI arguments that accept lists can be specified either as a delimited string or as the same argument passed multiple times. For example, the following help text shows that the --origins argument accepts a list of origins. It can be specified as a comma-separated string:
FLAGS
[--origins]... The request origins to approve [separator = ,]The following commands are thus equivalent:
npx @transcend-io/cli2 request approve --origins "US,EU"npx @transcend-io/cli2 request approve --origins US --origins EUThe only exception is for arguments that have a default list value. In this case, there will be no [separator = ,] specification in the argument's help text.
Development
Checkout the repo, and install:
pnpm installIn a separate terminal, build the CLI and watch for changes:
pnpm build:watchTo call the CLI while developing, you can use the following command:
pnpm start --helpThis is equivalent to calling the CLI entrypoint:
npx @transcend-io/cli2 --help