Skip to main content

elv-admin

EluvioLive Admin CLI

Usage: elv-admin <command>

Global options​

OptionTypeRequiredDescription
-m, --mainSets ELV_NET=main
-d, --dv3, --demov3Sets ELV_NET=demov3
--testSets ELV_NET=test
--devSets ELV_NET=dev
--verbose, -vbooleanVerbose mode

Commands​

CommandDescription
account_createCreate a new account -> mnemonic, address, private key
queryQuery the indexer
account_set_tenantAssociate this account to the tenant - if an admins group ID is used, it will be converted to the tenant ID.
account_showShows current account information.
account_balanceShows account balance for provided address.
account_sendSend funds to a given address using this key
replace_stuck_transactionreplace stuck transaction at given nonce using this key with higher gas-price
account_offer_signatureCreates an offer signature for use by the minter to redeem an nft offer. Note the current key must be a token owner of the nft.
account_fabric_tokenCreates a fabric token using this key
account_signed_tokenCreates a client signed token using this key
group_createCreate a new access group
group_addAdd account to access group
group_removeRemove account from access group
space_tenant_infoShow tenant information.
tenant_showShow info on this tenant
tenant_fixFix tenant
tenant_fix_suiteFix old-gen tenant
tenant_set_content_adminsSet new content admin
tenant_remove_content_adminRemove a content admin
tenant_set_tenant_usersSet new tenant users
tenant_remove_tenant_usersRemove a tenant users group
set_tenant_contract_idset tenant contract id for the given object: wallet|content-type|tenant|group|library
get_tenant_infoget tenant contract id and tenant id for the given object: wallet|content-type|tenant|group|library
space_tenant_deployDeploys a tenant contract
tenant_create_faucetGenerate/get tenant funding address for given tenant and provide funds
tenant_delete_faucetDelete faucet information for given tenant
tenant_create_sharing_keyGenerate/get tenant sharing key for given tenant
tenant_fund_userfund the user for given tenant_id
tenant_set_statusSet tenant status for given tenant
space_tenant_createCreates a new tenant account including all supporting access groups and deployment of contracts.
space_tenant_set_eluvio_live_idSet the tenant-level Eluvio Live object ID in the tenant contract.
content_meta_get_batchGet metadata fields for the list of content object IDs in the CSV file or library.
content_meta_set_batchSet metadata fields for the list of content object IDs in the CSV file.
contract_get_metaGet contract metadata.
contract_set_metaSet contract metadata using key/value.
access_group_memberChecks if the user address is a member of the access group.
access_group_membersReturns a list of group members.
claimer_allocateAllocate an allocation to an user, an allocation contains an amount and an expiration date (in UTC)
claimer_claimClaim an amount of your allocations
claimer_burnBurn an amount of your allocations
claimer_list_allocationsList the allocations of an address
claimer_add_auth_addressAdd an address to the authorized address list
claimer_rm_auth_addressRemove an address from the authorized address list
claimer_balance_ofGet the balance of an address
claimer_burn_ofGet the burn of an address
nodesRetrieve all nodes in the content space, with optional filters.
set_object_group_permissionAdd a permission on the specified group for the specified object
object_cleanupcleanup given object access to dead objects like libraries, groups
library_deletedelete library by the owner
object_listlist the content objects the given user or group has access to
batch_helperBatch Helper commands
batch_helper delete_versionsDelete version hashes from object address provided
batch_helper delete_contentsDelete content objects provided
group_decrypt_oauthDecrypt the oauth info: issuer, claims.aud, claims.groups[] from group metadata
group_encrypt_oauthEncrypt oauth info: issuer, claims.aud, claims.groups[] and store in group metadata
issuer_okta_getRetrieve all Okta users and groups for given issuer
issuer_okta_syncRetrieve all Okta users and groups for given issuer and update the policy object metadata

Command reference​

account_create​

elv-admin account_create <funds> <account_name> <tenant>

Create a new account -> mnemonic, address, private key

Arguments

NameTypeRequiredDescription
fundsstring✓How much to fund the new account from this private key (ELV).
account_namestring✓Account Name
tenantstring✓Tenant ID (iten)

Options

OptionTypeRequiredDescription
--group_rolesstringgroup and role pairs in JSON format, Eg: {"grp1":"member"}

query​

elv-admin query

Query the indexer

account_set_tenant​

elv-admin account_set_tenant <tenant>

Associate this account to the tenant - if an admins group ID is used, it will be converted to the tenant ID.

Arguments

NameTypeRequiredDescription
tenant✓

Options

OptionTypeRequiredDescription
--tenantstringTenant contract ID (iten...)

account_show​

elv-admin account_show

Shows current account information.

account_balance​

elv-admin account_balance <address>

Shows account balance for provided address.

Arguments

NameTypeRequiredDescription
addressstring✓user address

account_send​

elv-admin account_send <address> <funds>

Send funds to a given address using this key

Arguments

NameTypeRequiredDescription
addressstring✓Account address to send
fundsstring✓How much to send from this private key in ETH.

replace_stuck_transaction​

elv-admin replace_stuck_transaction

replace stuck transaction at given nonce using this key with higher gas-price

Options

OptionTypeRequiredDescription
--nonceintegerNonce of the transaction to be replaced

account_offer_signature​

elv-admin account_offer_signature <nft_addr> <mint_helper_addr> <token_id> <offer_id>

Creates an offer signature for use by the minter to redeem an nft offer. Note the current key must be a token owner of the nft.

Arguments

NameTypeRequiredDescription
nft_addrstring✓NFT contract address (hex)
mint_helper_addrstring✓Address of the mint helper (hex)
token_idinteger✓Token ID of the offer
offer_idinteger✓Offer_id

account_fabric_token​

elv-admin account_fabric_token [Options]

Creates a fabric token using this key

Options

OptionTypeRequiredDescription
--durationstringTime until the token expires, in milliseconds (default: 120000 = 2 min)

account_signed_token​

elv-admin account_signed_token [Options]

Creates a client signed token using this key

Options

OptionTypeRequiredDescription
--library_idstringLibrary ID to authorize
--object_idstringObject ID to authorize
--version_hashstringVersion hash to authorize
--policy_idstringThe object ID of the policy for this token
--subjectstringSubject of the token. Default is the current address
--grant_typestringPermissions to grant for this token. Options: 'access', 'read', 'create', 'update', 'read-crypt'. Default 'read'
--durationintegerTime until the token expires, in milliseconds. Default 2 min = 2 * 60 * 1000 = 120000)
--allow_decryptionbooleanIf specified, the re-encryption key will be included in the token, enabling the user of this token to download encrypted content from the specified object
--contextstringAdditional JSON context

group_create​

elv-admin group_create <name>

Create a new access group

Arguments

NameTypeRequiredDescription
namestring✓The name of the access group

group_add​

elv-admin group_add <group_address> <account_address>

Add account to access group

Arguments

NameTypeRequiredDescription
group_addressstring✓The address of the access group (hex)
account_addressstring✓The address to add as member (hex)

Options

OptionTypeRequiredDescription
--is_managerbooleanSet new address as group manager

group_remove​

elv-admin group_remove <group_address> <account_address>

Remove account from access group

Arguments

NameTypeRequiredDescription
group_addressstring✓The address of the access group (hex)
account_addressstring✓The address to remove as member (hex)

Options

OptionTypeRequiredDescription
--is_managerbooleanremove address as group manager

space_tenant_info​

elv-admin space_tenant_info <tenant>

Show tenant information.

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID (iten)

tenant_show​

elv-admin tenant_show <tenant> [options]

Show info on this tenant

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID

Options

OptionTypeRequiredDescription
--as_urlstringAlternate authority service URL (include '/as/' route if necessary)
--show_metadatabooleanShow the content fabric metadata associated to this tenant

tenant_fix​

elv-admin tenant_fix <tenant> [options]

Fix tenant

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID

Options

OptionTypeRequiredDescription
--content_admin_addressstringAddress of the content admins groups

tenant_fix_suite​

elv-admin tenant_fix_suite <tenant> <content_admin_address> [options]

Fix old-gen tenant

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID
content_admin_addressstring✓Address of the content admins groups

Options

OptionTypeRequiredDescription
--librariesarrayList of libraries that belong to this tenant

tenant_set_content_admins​

elv-admin tenant_set_content_admins <tenant> [options]

Set new content admin

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID

Options

OptionTypeRequiredDescription
--content_admin_addressstringAddress of the content admins groups

tenant_remove_content_admin​

elv-admin tenant_remove_content_admin <tenant> <content_admin_address>

Remove a content admin

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID
content_admin_addressstring✓Content Admin's address

tenant_set_tenant_users​

elv-admin tenant_set_tenant_users <tenant> [options]

Set new tenant users

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID

Options

OptionTypeRequiredDescription
--tenant_users_addressstringAddress of the tenant users groups

tenant_remove_tenant_users​

elv-admin tenant_remove_tenant_users <tenant> <tenant_users_address>

Remove a tenant users group

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID
tenant_users_addressstring✓Tenant users address

set_tenant_contract_id​

elv-admin set_tenant_contract_id <object> <tenantContractId>

set tenant contract id for the given object: wallet|content-type|tenant|group|library

Arguments

NameTypeRequiredDescription
objectstring✓object Id | version hash | contract address
tenantContractIdstring✓tenant contract id

get_tenant_info​

elv-admin get_tenant_info <object>

get tenant contract id and tenant id for the given object: wallet|content-type|tenant|group|library

Arguments

NameTypeRequiredDescription
objectstring✓object Id | version hash | contract address

space_tenant_deploy​

elv-admin space_tenant_deploy <tenant_name> <owner_addr> <tenant_admin_addr> <content_admin_addr>

Deploys a tenant contract

Arguments

NameTypeRequiredDescription
tenant_namestring✓Tenant Name
owner_addrstring✓Owner of the new contract
tenant_admin_addrstring✓Address of the tenant admins groups
content_admin_addrstring✓Address of the content admins groups
tenant_users_addrstringAddress of the tenant users groups

tenant_create_faucet​

elv-admin tenant_create_faucet <tenant_id>

Generate/get tenant funding address for given tenant and provide funds

Arguments

NameTypeRequiredDescription
tenant_idstring✓tenant id

Options

OptionTypeRequiredDescription
--fundsnumberThe amount to fund the faucet funding address, specified in Elv's
--as_urlstringAlternate authority service URL (include '/as/' route if necessary)
--no_fundsbooleanfunds are not transferred to tenant funding address

tenant_delete_faucet​

elv-admin tenant_delete_faucet <tenant_id>

Delete faucet information for given tenant

Arguments

NameTypeRequiredDescription
tenant_idstring✓tenant id

Options

OptionTypeRequiredDescription
--as_urlstringAlternate authority service URL (include '/as/' route if necessary)

tenant_create_sharing_key​

elv-admin tenant_create_sharing_key <tenant_id>

Generate/get tenant sharing key for given tenant

Arguments

NameTypeRequiredDescription
tenant_idstring✓tenant id

Options

OptionTypeRequiredDescription
--as_urlstringAlternate authority service URL (include '/as/' route if necessary)

tenant_fund_user​

elv-admin tenant_fund_user <tenant_id> <user_address>

fund the user for given tenant_id

Arguments

NameTypeRequiredDescription
tenant_idstring✓tenant id
user_addressstring✓user address

Options

OptionTypeRequiredDescription
--as_urlstringAlternate authority service URL (include '/as/' route if necessary)

tenant_set_status​

elv-admin tenant_set_status <tenant> <tenant_status>

Set tenant status for given tenant

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID
tenant_statusstring✓Tenant Status
Choices: active, inactive

space_tenant_create​

elv-admin space_tenant_create <tenant_name>

Creates a new tenant account including all supporting access groups and deployment of contracts.
PRIVATE_KEY must be set for the space owner.
By default, 51 Elv is transferred to tenant root key

Arguments

NameTypeRequiredDescription
tenant_namestring✓Tenant Name

Options

OptionTypeRequiredDescription
--fundsintegerfunds transferred to tenant-admin key

space_tenant_set_eluvio_live_id​

elv-admin space_tenant_set_eluvio_live_id <tenant> <eluvio_live_id>

Set the tenant-level Eluvio Live object ID in the tenant contract.

Arguments

NameTypeRequiredDescription
tenantstring✓Tenant ID (iten)
eluvio_live_idstring✓Object ID of the tenant-level Eluvio Live object (iq)

content_meta_get_batch​

elv-admin content_meta_get_batch <csv_file> [options]

Get metadata fields for the list of content object IDs in the CSV file or library.

Arguments

NameTypeRequiredDescription
csv_filestring✓CSV file

Options

OptionTypeRequiredDescription
--librarystringLibrary ID
--limitintegerMax number of objects

content_meta_set_batch​

elv-admin content_meta_set_batch <csv_file>

Set metadata fields for the list of content object IDs in the CSV file.

Arguments

NameTypeRequiredDescription
csv_filestring✓CSV file

Options

OptionTypeRequiredDescription
--duplicatebooleanClone the content objects instead of editing them directly.
--dryrunbooleanPrint resulting metadata but don't actually edit the objects.

contract_get_meta​

elv-admin contract_get_meta <addr> <key>

Get contract metadata.

Arguments

NameTypeRequiredDescription
addrstring✓Contract address. NFT object ID also accepted eg. iqxxx.
keystring✓Metadata key to retrieve.

contract_set_meta​

elv-admin contract_set_meta <addr> <key> <value>

Set contract metadata using key/value.

Arguments

NameTypeRequiredDescription
addrstring✓Contract address. NFT object ID also accepted eg. iqxxx.
keystring✓Metadata key.
valuestring✓Metadata value.

access_group_member​

elv-admin access_group_member <group> <addr>

Checks if the user address is a member of the access group.

Arguments

NameTypeRequiredDescription
groupstring✓Access control group ID or address (igrp or hex format)
addrstring✓User address (hex format)

access_group_members​

elv-admin access_group_members <group>

Returns a list of group members.

Arguments

NameTypeRequiredDescription
groupstring✓Access control group ID or address (igrp or hex format)

claimer_allocate​

elv-admin claimer_allocate <address> <amount> <yyyy_mm_dd>

Allocate an allocation to an user, an allocation contains an amount and an expiration date (in UTC)

Arguments

NameTypeRequiredDescription
addressstring✓Address to allocate
amountstring✓Amount to allocate
yyyy_mm_dd✓
expiration_datestringExpiration date of the allocation (in UTC)

claimer_claim​

elv-admin claimer_claim <amount>

Claim an amount of your allocations

Arguments

NameTypeRequiredDescription
amountstring✓Amount to claim

claimer_burn​

elv-admin claimer_burn <amount>

Burn an amount of your allocations

Arguments

NameTypeRequiredDescription
amountstring✓Amount to burn

claimer_list_allocations​

elv-admin claimer_list_allocations <address>

List the allocations of an address

Arguments

NameTypeRequiredDescription
addressstring✓the allocations of this address would be listed

claimer_add_auth_address​

elv-admin claimer_add_auth_address <address>

Add an address to the authorized address list

Arguments

NameTypeRequiredDescription
addressstring✓this address would be added to the authorized address list

claimer_rm_auth_address​

elv-admin claimer_rm_auth_address <address>

Remove an address from the authorized address list

Arguments

NameTypeRequiredDescription
addressstring✓this address would be removed from the authorized address list

claimer_balance_of​

elv-admin claimer_balance_of <address>

Get the balance of an address

Arguments

NameTypeRequiredDescription
addressstring✓the balance of this address would be given

claimer_burn_of​

elv-admin claimer_burn_of <address>

Get the burn of an address

Arguments

NameTypeRequiredDescription
addressstring✓the burn of this address would be given

nodes​

elv-admin nodes

Retrieve all nodes in the content space, with optional filters.

Options

OptionTypeRequiredDescription
--endpointstringMatch nodes with endpoints that contain this string.
--node_idstringOnly match the node with this node ID

set_object_group_permission​

elv-admin set_object_group_permission <object> <group> <permission> [options]

Add a permission on the specified group for the specified object

Arguments

NameTypeRequiredDescription
objectstring✓object ID or address
groupstring✓group ID or address
permissionstring✓type of permission to add (see, access, manage)

object_cleanup​

elv-admin object_cleanup <object> <object_type>

cleanup given object access to dead objects like libraries, groups

Arguments

NameTypeRequiredDescription
objectstring✓object to be cleaned
object_typestring✓object type: library | content_object | group | content_type

library_delete​

elv-admin library_delete <library>

delete library by the owner

Arguments

NameTypeRequiredDescription
librarystring✓library id/address

object_list​

elv-admin object_list <object>

list the content objects the given user or group has access to

Arguments

NameTypeRequiredDescription
objectstring✓user or group id/address

batch_helper​

elv-admin batch_helper <commands> [args...]

Batch Helper commands

Subcommands

batch_helper delete_versions​

elv-admin batch_helper delete_versions <target> <start_index> <end_index>

Delete version hashes from object address provided

Arguments

NameTypeRequiredDescription
targetstring✓Address/Id of the object
start_indexnumber✓Starting index for version hash deletion
end_indexnumber✓Ending index for version hash deletion

batch_helper delete_contents​

elv-admin batch_helper delete_contents <content_objects>

Delete content objects provided

Arguments

NameTypeRequiredDescription
content_objectsstring✓comma separated list of content objects

group_decrypt_oauth​

elv-admin group_decrypt_oauth <group>

Decrypt the oauth info: issuer, claims.aud, claims.groups[] from group metadata

Arguments

NameTypeRequiredDescription
groupstring✓group id or address

group_encrypt_oauth​

elv-admin group_encrypt_oauth <group> <oauth_config>

Encrypt oauth info: issuer, claims.aud, claims.groups[] and store in group metadata

Arguments

NameTypeRequiredDescription
groupstring✓group id or address
oauth_configstring✓oauth config json

issuer_okta_get​

elv-admin issuer_okta_get <okta_domain>

Retrieve all Okta users and groups for given issuer

Arguments

NameTypeRequiredDescription
okta_domainstring✓okta domain url

Options

OptionTypeRequiredDescription
--outstringoutput-file path

issuer_okta_sync​

elv-admin issuer_okta_sync <policy_id>

Retrieve all Okta users and groups for given issuer and update the policy object metadata

Arguments

NameTypeRequiredDescription
policy_idstring✓policy id

Options

OptionTypeRequiredDescription
--okta_domainstringokta domain url
--keep_existing_partbooleando not delete existing oauth_settings part hash
Default: false
--user_group_liststringusers and groups list to store in part