Skip to main content

pre kind

Manages kinds, including creation, registration, updating, and upgrading

pre kind info ID

Displays details about a specific kind

USAGE
$ pre kind info ID [-u <value>] [-f <value>] [--rev <value>]

ARGUMENTS
ID Id of the kind

FLAGS
--rev=<value> Object revision

CONTEXT FLAGS
-f, --conf=<value> Use config file at path
-u, --universe=<value> Universe name in the config file

DESCRIPTION
Displays details about a specific kind

pre kind register CODE DESC [STATESPEC] [RELSPEC]

Registers a kind with the kind registry

USAGE
$ pre kind register CODE DESC [STATESPEC] [RELSPEC] -a <value> [-u <value>]
[--keystore <value>] [-f <value>] [-p <value>]

ARGUMENTS
CODE Hash of the code material, a 32-byte hexadecimal string starting with '0x'
DESC Hash of the description material, a 32-byte hexadecimal string starting with '0x'
STATESPEC Element types, type names or values(uint8) separated by commas or spaces
RELSPEC Relation ids supported, values(uint64) separated by commas or spaces

CONTEXT FLAGS
-a, --account=<value> (required) Name of the account to use as transaction sender
-f, --conf=<value> Use config file at path
-p, --password=<value> Password to unlock the account
-u, --universe=<value> Universe name in the config file
--keystore=<value> Path to the keystore directory

DESCRIPTION
Registers a kind with the kind registry

pre kind update ID

Applies updates to an existing kind

USAGE
$ pre kind update ID -a <value> [-u <value>] [--keystore <value>] [-f
<value>] [-p <value>] [--code <value>] [--desc <value>] [--relSpec <value>]

ARGUMENTS
ID Id of the kind

FLAGS
--code=<value> Hash of the description material, a 32-byte hexadecimal string starting with '0x'
--desc=<value> Hash of the description material, a 32-byte hexadecimal string starting with '0x'
--relSpec=<value> Relation ids supported, values(uint64) separated by commas or spaces

CONTEXT FLAGS
-a, --account=<value> (required) Name of the account to use as transaction sender
-f, --conf=<value> Use config file at path
-p, --password=<value> Password to unlock the account
-u, --universe=<value> Universe name in the config file
--keystore=<value> Path to the keystore directory

DESCRIPTION
Applies updates to an existing kind

pre kind upgrade ID

Upgrades a kind's kind or set to a newer version

USAGE
$ pre kind upgrade ID -a <value> [-u <value>] [--keystore <value>] [-f
<value>] [-p <value>] [--krev <value>] [--srev <value>]

ARGUMENTS
ID Id of the kind

FLAGS
--krev=<value> Kind revision
--srev=<value> Set revision

CONTEXT FLAGS
-a, --account=<value> (required) Name of the account to use as transaction sender
-f, --conf=<value> Use config file at path
-p, --password=<value> Password to unlock the account
-u, --universe=<value> Universe name in the config file
--keystore=<value> Path to the keystore directory

DESCRIPTION
Upgrades a kind's kind or set to a newer version