2.13.0 • Published 9 months ago

@cere-ddc-sdk/cli v2.13.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@cere-ddc-sdk/cli

DDC CLI provides a flexible set of commands for developers to help setting up a DDC account, upload/download files and more.

System requirements

  • NodeJS >= 18.0.0

Installation

Global installation:

npm install -g @cere-ddc-sdk/cli

As a project dependency

npm install --save-dev @cere-ddc-sdk/cli

Running with NPX will auto-install the package

npx @cere-ddc-sdk/cli [command] [options]

Usage

All interactions with DDC CLI are of the form

npx @cere-ddc-sdk/cli [command] [options]

or using named binary

cere-ddc [command] [options]

Help

To display basic commands and arguments -

npx @cere-ddc-sdk/cli --help

Example

Upload a file to DDC

npx @cere-ddc-sdk/cli upload ./image.jpg network=testnet --signer="seed phrase" --bucketId=123

Configuration

It is possible to provide configuration file instead of adding all options to a command line

npx @cere-ddc-sdk/cli upload ./image.jpg --config ./ddc.config.json

The configuration file example

{
    "network": "testnet",
    "signer": "seed phrase",
    "signerType": "sr25519",
    "clusterId": "0x...",
}

Examples

License

Licensed under the Apache License

2.12.7

10 months ago

2.12.8

9 months ago

2.13.0

9 months ago

2.12.5

10 months ago

2.12.6

10 months ago

2.9.2

1 year ago

2.12.3

11 months ago

2.12.4

11 months ago

2.12.1

12 months ago

2.12.2

11 months ago

2.11.0

1 year ago

2.12.0

12 months ago

2.11.1

12 months ago

2.10.0

1 year ago

2.9.1

1 year ago

2.9.0

1 year ago

2.8.0

1 year ago

2.7.0

1 year ago

2.7.0-rc.2

1 year ago

2.7.0-rc.1

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago