ol push asset

Push asset metadata to the hub

The ol push asset command updates a module on the OL Hub by adding a new asset or overriding an existing one.

Rules

  • Login to the OL Hub.
  • The ol push asset command must be executed from the module root folder only.
  • The asset has to exist locally inside the module folder.

Syntax

ol push asset ASSET_NAME [OPTIONS]

Arguments

ASSET_NAME

The name of the asset to be pushed to the hub. It is the same as the value of the name key in the asset JSON file.

Options

--description, -d

Free text that describes the asset from a business or other perspective

Examples

Pushing an asset

[module_folder]> ol push asset itemde
[module_folder]$ ol push asset itemde

With the description option

[module_folder]> ol push asset bapi-transfer-operation.json -d 'this asset defines a contract for transferring money between two accounts'
[module_folder]$ ol push asset bapi-transfer-operation.json -d 'this asset defines a contract for transferring money between two accounts'