diff --git a/developers/ocean-cli/consuming-an-asset.md b/developers/ocean-cli/consuming-an-asset.md index 4d2d2944..22b004e3 100644 --- a/developers/ocean-cli/consuming-an-asset.md +++ b/developers/ocean-cli/consuming-an-asset.md @@ -6,4 +6,4 @@ In this command, replace 'assetDID' with the specific DID of the asset you want Once executed, this command seamlessly orchestrates both the ordering of datatoken and the subsequent download operation. The asset's content will be automatically retrieved and saved at the specified location, simplifying the consumption process for users. -
dowload method example
+
dowload method example
diff --git a/developers/ocean-cli/downloading-compute-results.md b/developers/ocean-cli/downloading-compute-results.md index 58931799..37f1f37c 100644 --- a/developers/ocean-cli/downloading-compute-results.md +++ b/developers/ocean-cli/downloading-compute-results.md @@ -8,4 +8,4 @@ For the first method, you'll need both the dataset DID and the compute job DID. For the second method, the dataset DID is no longer required. Instead, you'll need to specify the job ID, the index of the result you wish to download from the available results for that job, and the destination folder where you want to save the downloaded content. The corresponding command is as follows: npm run cli downloadJobResults 'JOB_ID' 'RESULT_INDEX' 'DESTINATION_FOLDER' -
downloadJobResults
+
downloadJobResults
diff --git a/developers/ocean-cli/installation.md b/developers/ocean-cli/installation.md index 4c330f6a..1efb6d9a 100644 --- a/developers/ocean-cli/installation.md +++ b/developers/ocean-cli/installation.md @@ -2,26 +2,20 @@ **Clone the Repository**: Begin by cloning the repository. You can achieve this by executing the following command in your terminal: -
```bash
-#!/bin/bash
+```bash
 $ git clone https://github.com/oceanprotocol/ocean.js-cli.git
 ```
-
Cloning the repository will create a local copy on your machine, allowing you to access and work with its contents. **Install NPM Dependencies**: After successfully cloning the repository, you should install the necessary npm dependencies to ensure that the project functions correctly. This can be done with the following command: -
```bash
-#!/bin/bash
+```bash
 npm install
 ```
-
Build the TypeScript code -
```bash
-#!/bin/bash
+```bash
 npm run build
 ```
-
diff --git a/developers/ocean-cli/publish-a-dataset.md b/developers/ocean-cli/publish-a-dataset.md index d2d90657..5b238428 100644 --- a/developers/ocean-cli/publish-a-dataset.md +++ b/developers/ocean-cli/publish-a-dataset.md @@ -2,78 +2,71 @@ Once the RPC environment variable has been configured, we can proceed to publish a new dataset on the connected network. The flexibility of our setup allows us to easily switch to a different network by simply substituting the RPC endpoint with one corresponding to another network. -To initiate this process, we'll begin by updating the helper DDO example named "SimpleDownloadDataset.json." This example can be found in the "./metadata" folder, which is located at the root directory of the cloned Ocean CLI project. +To initiate this process, we'll begin by updating the helper DDO example named "SimpleDownloadDataset.json". This example can be found in the "./metadata" folder, which is located at the root directory of the cloned Ocean CLI project. -
```json
+```json
 {
-  "@context": [
-    "https://w3id.org/did/v1"
-  ],
-  "id": "",
-  "nftAddress": "",
-  "version": "4.1.0",
-  "chainId": 80001,
-  "metadata": {
-    "created": "2021-12-20T14:35:20Z",
-    "updated": "2021-12-20T14:35:20Z",
-    "type": "dataset",
-    "name": "ocean-cli demo asset",
-    "description": "asset published using ocean cli tool",
-    "tags": [
-      "test"
-    ],
-    "author": "oceanprotocol",
-    "license": "https://market.oceanprotocol.com/terms",
-    "additionalInformation": {
-      "termsAndConditions": true
-    }
-  },
-  "services": [
-    {
-      "id": "ccb398c50d6abd5b456e8d7242bd856a1767a890b537c2f8c10ba8b8a10e6025",
-      "type": "access",
-      "files": {
-        "datatokenAddress": "0x0",
-        "nftAddress": "0x0",
-        "files": [
-          {
-            "type": "url",
-            "url": "https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract10.xml.gz-rss.xml",
-            "method": "GET"
-          }
-        ]
-      },
-      "datatokenAddress": "",
-      "serviceEndpoint": "https://v4.provider.oceanprotocol.com",
-      "timeout": 86400
-    }
-  ],
-  "event": {
-  },
-  "nft": {
-    "address": "",
-    "name": "Ocean Data NFT",
-    "symbol": "OCEAN-NFT",
-    "state": 5,
-    "tokenURI": "",
-    "owner": "",
-    "created": ""
-  },
-  "purgatory": {
-    "state": false
-  },
-  "datatokens": [
-  ],
-  "stats": {
-    "allocated": 0,
-    "orders": 0,
-    "price": {
-      "value": "2"
-    }
-  }
+	"@context": ["https://w3id.org/did/v1"],
+	"id": "",
+	"nftAddress": "",
+	"version": "4.1.0",
+	"chainId": 80001,
+	"metadata": {
+		"created": "2021-12-20T14:35:20Z",
+		"updated": "2021-12-20T14:35:20Z",
+		"type": "dataset",
+		"name": "ocean-cli demo asset",
+		"description": "asset published using ocean cli tool",
+		"tags": ["test"],
+		"author": "oceanprotocol",
+		"license": "https://market.oceanprotocol.com/terms",
+		"additionalInformation": {
+			"termsAndConditions": true
+		}
+	},
+	"services": [
+		{
+			"id": "ccb398c50d6abd5b456e8d7242bd856a1767a890b537c2f8c10ba8b8a10e6025",
+			"type": "access",
+			"files": {
+				"datatokenAddress": "0x0",
+				"nftAddress": "0x0",
+				"files": [
+					{
+						"type": "url",
+						"url": "https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract10.xml.gz-rss.xml",
+						"method": "GET"
+					}
+				]
+			},
+			"datatokenAddress": "",
+			"serviceEndpoint": "https://v4.provider.oceanprotocol.com",
+			"timeout": 86400
+		}
+	],
+	"event": {},
+	"nft": {
+		"address": "",
+		"name": "Ocean Data NFT",
+		"symbol": "OCEAN-NFT",
+		"state": 5,
+		"tokenURI": "",
+		"owner": "",
+		"created": ""
+	},
+	"purgatory": {
+		"state": false
+	},
+	"datatokens": [],
+	"stats": {
+		"allocated": 0,
+		"orders": 0,
+		"price": {
+			"value": "2"
+		}
+	}
 }
 ```
-
Note: The provided example creates a consumable asset with a predetermined price of 2 OCEAN tokens. If you wish to modify this and create an asset that is freely accessible, you can do so by replacing the value of "stats.price.value" with 0 in the JSON example mentioned above. Next step is to run the npm run cli publish metadata/simpleDownloadDataset.json command diff --git a/developers/ocean-cli/setting-environment-variables.md b/developers/ocean-cli/setting-environment-variables.md index a373fe05..48594c53 100644 --- a/developers/ocean-cli/setting-environment-variables.md +++ b/developers/ocean-cli/setting-environment-variables.md @@ -4,26 +4,20 @@ To successfully configure the CLI tool, two essential steps must be undertaken: **Private Key Configuration**: The CLI tool necessitates the configuration of the account's private key. This private key serves as the means by which the CLI tool establishes a connection to the associated wallet. It plays a crucial role in authenticating and authorizing operations performed by the tool. -
```bash
-#!/bin/bash
+```bash
 export MNEMONIC="XXXX"
 ```
-
**RPC Endpoint Specification**: Additionally, it is imperative to specify the RPC endpoint that corresponds to the desired network for executing operations. The CLI tool relies on this user-provided RPC endpoint to connect to the network required for its functions. This connection to the network is vital as it enables the CLI tool to interact with the blockchain and execute operations seamlessly. -
```bash
-#!/bin/bash
+```bash
 export RPC='XXXX'
 ```
-
Furthermore, there are additional environment variables that can be configured to enhance the flexibility and customization of the environment. These variables include options such as the metadataCache URL and Provider URL, which can be specified if you prefer to utilize a custom deployment of Aquarius or Provider in contrast of the default settings. Moreover, you have the option to provide a custom address file path if you wish to use customized smart contracts or deployments for your specific use case. Remeber setting the next envariament variables is optional. -
```bash
-#!/bin/bash
+```bash
 export AQUARIUS_URL='XXXX'
 export PROVIDER_URL='XXXX'
 export ADDRESS_FILE='../path/to/your/address-file'
 ```
-
diff --git a/developers/ocean-cli/usage.md b/developers/ocean-cli/usage.md index b9d8ea41..19c74dd3 100644 --- a/developers/ocean-cli/usage.md +++ b/developers/ocean-cli/usage.md @@ -2,10 +2,8 @@ The command npm run cli h returns a list of all commands and option flags. -
```bash
-#!/bin/bash
+```bash
 npm run cli h
 ```
-
-
+
available options