Share CLI command - uni
share uni
Manage Uni operations.
Table of Contents
Commands for share uni
Manage Uni operations
Usage for share uni
share uni <subcommand>
Subcommand | Description |
---|---|
uni create | Create a new uni |
uni delete | Permanently delete a uni |
uni evolve | Evolve the schema for a Uni |
uni get | Get information about a given uni |
uni invite | Invite a new node to join the Uni |
uni join | Join an existing Uni |
uni list | Lists all unis in your account |
uni open | Open a Uni in the vendia dev console |
uni reset | Resets Uni to it’s original state |
Examples for share uni
❯ List all uni infoshare uni list
❯ Get Uni infoshare uni get --uni <uniName>
❯ Create Unis# Register uni via JSON file:share uni:create --config registration.json# Register uni via --config:share uni:create --config '{"name": "test-UniName", "schema": "schema.json","nodes":[{"name":"NodeName","userId": "email@email.com","region": "us-east-1","csp": "aws"}]}'
❯ Open Unis in Browsershare uni openshare uni open --uni <uniName>
❯ Reset Uni datashare uni reset --uni <uniName>
❯ Delete Unishare uni delete --uni <uniName># Skip delete confirmation prompt:share uni delete --uni <uniName> --force
❯ Invite another node to the Unishare uni invite --uni <uniName> --user <userEmail>
❯ Join an existing Unishare uni join -u <uniName> -t <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1"}'share uni join --uni <uniName> --token <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1"}'
❯ Evolve the schema of a Unishare uni evolve --uni <uniName> --schema schema.json
uni create
Create a new uni.
The uni create
command also allows for optionally providing the schema and initial state filenames as an alternative to providing them in the registration file.
Usage for uni create
share uni create
Flags for uni create
config
(option) - File path or JSON registration datarole
(option) - Role name to use for the operation
Examples for uni create
# Register uni via JSON file:share uni:create --config registration.json# Register uni via --config:share uni:create --config '{"name": "test-UniName", "schema": "schema.json","nodes":[{"name":"NodeName","userId": "email@email.com","region": "us-east-1","csp": "aws"}]}'
uni delete
Permanently delete a Uni.
Usage for uni delete
share uni delete
Flags for uni delete
uni
(option) - Name of Uniforce
(boolean) - Force deletion with no confirmation step. Use with cautionrole
(option) - Role name to use for the operation
Examples for uni delete
share uni delete --uni <uniName># Skip delete confirmation prompt:share uni delete --uni <uniName> --force
uni evolve
Evolve the schema for a Uni.
Usage for uni evolve
share uni evolve
Flags for uni evolve
uni
(option) - Name of Unischema
(option) - File path of schemaallowed-breaking-change
(option) - A type of breaking change allowed. This flag may be specified multiple times to allow more than one type of breaking change.approval-required
(option) - Interactive approval for breaking changes to a schema. Default is ‘ALWAYS’role
(option) - Role name to use for the operation
Examples for uni evolve
share uni evolve --uni <uniName> --schema schema.json
uni get
Get information about a given Uni.
Usage for uni get
share uni get
Flags for uni get
uni
(option) - Name of Unirole
(option) - Role name to use for the operation
Examples for uni get
share uni get --uni <uniName>
uni invite
Invite a new node to join the Uni.
Usage for uni invite
share uni invite
Flags for uni invite
uni
(option) - Name of Uniuser
(option) - User email of user to inviterole
(option) - Role name to use for the operation
Examples for uni invite
share uni invite --uni <uniName> --user <userEmail>
uni join
Join an existing Uni.
Usage for uni join
share uni join
Flags for uni join
uni
(option) - Name of Unitoken
(option) - Value of the invitation tokenconfig
(option) - Node configuration settingsjson
(boolean) - Output return values as JSONrole
(option) - Role name to use for the operation
Examples for uni join
share uni join -u <uniName> -t <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1"}'share uni join --uni <uniName> --token <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1"}'
uni list
Lists all Unis in your account. Lists all Unis in which the calling account owns a node.
Usage for uni list
share uni list
Flags for uni list
json
(boolean) - Return list of unis as jsonrole
(option) - Role name to use for the operation
Examples for uni list
share uni list
uni open
Open a Uni in the Vendia dev console.
Usage for uni open
share uni open
Flags for uni open
uni
(option) - Name of Uni
Examples for uni open
share uni openshare uni open --uni <uniName>
uni reset
Resets a Uni to its original state. Resets uniName to the state it was in just after it began operation (useful during development and testing).
Usage for uni reset
share uni reset
Flags for uni reset
uni
(option) - Name of Unirole
(option) - Role name to use for the operation
Examples for uni reset
share uni reset --uni <uniName>