oceanprotocol / ocean-cli

4 stars 5 forks source link

banner

Ocean CLI

CLI tool to interact with the oceanprotocol's JavaScript library to privately & securely publish, consume and run compute on data.

npm code style: prettier js oceanprotocol

With the Ocean CLI tool you can:

Ocean CLI is using ocean.js Javascripti library which is part of the Ocean Protocol toolset.

If you run into problems, please open up a new issue.

📚 Prerequisites

🏗 Installation & Usage

Clone and install

$ git clone https://github.com/oceanprotocol/ocean-cli.git
npm install

Set up environment variables

export PRIVATE_KEY="XXXX"

or

export MNEMONIC="XXXX"
export RPC='XXXX'
export AQUARIUS_URL='XXXX'
export PROVIDER_URL='XXXX'
export ADDRESS_FILE='path-to-address-file'

Build the TypeScript code

npm run build

Use

List available commands

npm run cli h

E.g. run publish command

Make sure to update chainId from the assets from metadata folder.

npm run cli publish metadata/simpleDownloadDataset.json

🏛 License

Copyright ((C)) 2023 Ocean Protocol Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.