Share CLI command - uni
Manage Uni operations.
Commands
Manage Uni operations
Usage
share uni <subcommand>
Sub command | 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
# List all uni info
share uni list
# Get Uni info
share 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", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}]}'
# Open Unis in Browser
share uni open
share uni open --uni <uniName>
# Reset Uni data
share uni reset --uni <uniName>
# Delete Uni
share uni delete --uni <uniName>
# Skip delete confirmation prompt:
share uni delete --uni <uniName> --force
# Invite another node to the Uni
share uni invite --uni <uniName> --user <userEmail>
share uni invite --uni <uniName> --user <userEmail> --expiration "2020-12-10T15:00:00"
# Join an existing Uni
share uni join -u <uniName> -t <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}'
share uni join --uni <uniName> --token <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}'
# Evolve the schema of a Uni
share 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
share uni create
Flags
config
(option) - File path or JSON registration datarole
(option) - Role name to use for the operation
Examples
# 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", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}]}'
uni delete
Permanently delete a uni
Usage
share uni delete
Flags
uni
(option) - Name of Uniforce
(boolean) - Force deletion with no confirmation step. Use with cautionrole
(option) - Role name to use for the operation
Examples
share uni delete --uni <uniName>
# Skip delete confirmation prompt:
share uni delete --uni <uniName> --force
uni evolve
Evolve the schema for a Uni
Usage
share uni evolve
Flags
uni
(option) - Name of Uniforce
(boolean) - Force breaking schema changesschema
(option) - File path of schemarole
(option) - Role name to use for the operation
Examples
share uni evolve --uni <uniName> --schema schema.json
uni get
Get information about a given uni
Usage
share uni get
Flags
uni
(option) - Name of Uni
Examples
share uni get --uni <uniName>
uni invite
Invite a new node to join the Uni
Usage
share uni invite
Flags
uni
(option) - Name of Uniuser
(option) - User email of user to inviteexpiration
(option) - Expiration date of invite in ISO 8601 format (UTC)role
(option) - Role name to use for the operation
Examples
share uni invite --uni <uniName> --user <userEmail>
share uni invite --uni <uniName> --user <userEmail> --expiration "2020-12-10T15:00:00"
uni join
Join an existing Uni
Usage
share uni join
Flags
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
share uni join -u <uniName> -t <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}'
share uni join --uni <uniName> --token <token> --config '{"name":"nodeName", "userId":"email@email.com", "region":"us-east-1", "settings": {"apiSettings": {"auth": {"authorizerType": "API_KEY"}}}}'
uni list
Lists all unis in your account Lists all unis in which the calling account owns a node.
Usage
share uni list
Flags
json
(boolean) - Return list of unis as json
Examples
share uni list
uni open
Open a Uni in the vendia dev console
Usage
share uni open
Flags
uni
(option) - Name of Uni
Examples
share uni open
share uni open --uni <uniName>
uni reset
Resets Uni to it's original state Resets uniName to the state it was in just after it began operation (useful during development and testing).
Usage
share uni reset
Flags
uni
(option) - Name of Unirole
(option) - Role name to use for the operation
Examples
share uni reset --uni <uniName>