export PRIVATE_KEY=XXX
./elv-live tenant_provision <tenant_contract_id> --help
tenant_provision <tenant> [options]
Provisions a new tenant account with standard media libraries and content types. Note this account must be created using
space_tenant_create.
Positionals:
tenant Tenant ID [string] [required]
Options:
--version Show version number [boolean]
-v, --verbose Verbose mode [boolean]
--as_url Alternate authority service URL (include '/as/' route if necessary) [string]
--help Show help [boolean]
--status Path to the JSON File for existing tenant provision config [string]
--init_config Displays the initial provisioning config, which can be used to input existing objects [boolean]
If a provision object is set to null or an empty string, the script will create a new one. If it's set to "none", no new object will be created.
Provision Methods:
Each provision method (base, mediaWallet, liveStreaming) ensures that all required parameters are set. If any dependent parameter is set to "none" or is missing, the script will throw an error.
Final Output:
As the objects are created, the results are saved to the ./tenant_status.json file by default.
If --status <file> flag is provided, the initial config is saved as backup file in pwd and the new results are saved to the file provided.
Summary of Changes:
Command:
To run the script:
To run tenant provision script:
To run tenant provision script with existing objects set in a JSON file:
Config file:
To get initial config either from status file (--status) or empty object :
If a provision object is set to
null
or an empty string, the script will create a new one. If it's set to"none"
, no new object will be created.Provision Methods:
Final Output:
./tenant_status.json
file by default.--status <file>
flag is provided, the initial config is saved as backup file in pwd and the new results are saved to the file provided.