eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

Add tenant commands #171

Open elv-preethi opened 8 months ago

elv-preethi commented 8 months ago

Added commands to:

Updated commands:

Requires elv-client-js PR: https://github.com/eluv-io/elv-client-js/pull/265

Note: In ./elv-live command:

Commands Added/Changed:

space_tenant_create <tenant_name>         Creates a new tenant account
  <funds>                                   including all supporting access
                                            groups and deployment of contracts.
                                            PRIVATE_KEY must be set for the
                                            space owner.

 tenant_show <tenant> [options]            Show info on this tenant
  tenant_fix <tenant> [options]             Fix tenant
  tenant_fix_suite <tenant>                 Fix old-gen tenant
  <content_admin_address>
  <tenant_user_group_address> [options]
  set_tenant_contract_id <objectId>         Set tenant_contract_id and tenant_id
  <tenantContractId> [options]              to given object when
                                            tenantContractId is provided
  set_tenant_id <objectId> <tenantId>       Set tenant_contract_id and tenant_id
  [options]                                 to given object when tenantId is
                                            provided
  tenant_contract_id <objectId> [options]   Retrieve tenant_contract_id for
                                            given object
  tenant_id <objectId> [options]            Retrieve tenant_id for given object
  tenant_remove <objectId> [options]        Remove tenant_id and
                                            tenant_contract_id for given object
  tenant_group <tenant> [group_type]        Retrieve all of specific group from
                                            tenant
  tenant_set_group <tenant> <group_type>    Set new content admin or user group
  [group_address]
  tenant_remove_group <tenant>              Remove tenant_admin, content_admin
  <group_type> <group_address>              or tenant_user_group address for
                                            give tenant
  tenant_set_status <tenant>                Set tenant status for give tenant
  <tenant_status>
  tenant_status <tenant>                    Get tenant status for give tenant