# CLI for interacting with the API You can visit the [Roblox Documentation](https://create.roblox.com/docs/open-cloud/data-store-api) for more information about the API ## List Data Stores List all Datastores in the specified "universe" or game ``` USAGE: rbx-ds-cloud list-data-stores [OPTIONS] --universe-id --api-key --limit OPTIONS: -a, --api-key API key of Roblox Open Cloud -c, --cursor (Optional) Cursor for the next set of data -l, --limit (INTEGER) Maximum number of items to return -p, --prefix (Optional) Return only data stores with this prefix -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page ``` ## List Entries Returns a list of entry keys within a data store ``` USAGE: rbx-ds-cloud list-entries [OPTIONS] --universe-id --api-key --datastore-name --limit OPTIONS: -a, --api-key API key of Roblox Open Cloud -c, --cursor (Optional) Provide to request the next set of data -d, --datastore-name Name of the data store -l, --limit (INTEGER) Maximum number of items to return -o, --all-scopes If true, return keys from all scopes [possible values: true, false] -p, --prefix (Optional) Return only keys with this prefix -s, --scope (Optional) If "None", defaults to global, similar to Lua API -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page ``` ## Get Entry Returns the value associated with an entry ``` USAGE: rbx-ds-cloud get-entry [OPTIONS] --universe-id --api-key --datastore-name --key OPTIONS: -a, --api-key API key of Roblox Open Cloud -d, --datastore-name Name of the data store -k, --key The key which identifies the entry -s, --scope (Optional) If "None", defaults to global, similar to Lua API -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page ``` ## Set Entry Sets the value, metadata and user IDs associated with an entry ``` USAGE: rbx-ds-cloud set-entry [OPTIONS] --universe-id --api-key --datastore-name --key --data OPTIONS: -a, --api-key API key of Roblox Open Cloud -d, --datastore-name Name of the data store -D, --data JSON-stringified or stringify-able data (Limit: 4MB) -e, --exclusive-create (Optional) Only create the entry if it does not exist [possible values: true ,false] -i, --match-version (Optional) Only update if current version matches this -k, --key The key which identifies the entry -s, --scope (Optional) If "None", defaults to global, similar to Lua API -t, --attributes (Optional) JSON-stringified attributes data -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page -U, --user-ids (Optional) Associated UserID (can be multiple) ``` ## Increment Entry Increments the value for an entry by a given amount, or create a new entry with that amount ``` USAGE: rbx-ds-cloud increment-entry [OPTIONS] --universe-id --api-key --datastore-name --key --increment-by OPTIONS: -a, --api-key API key of Roblox Open Cloud -d, --datastore-name Name of the data store -i, --increment-by The amount by which the entry should be incremented -k, --key The key which identifies the entry -s, --scope (Optional) If "None", defaults to global, similar to Lua API -t, --attributes (Optional) JSON-stringified attributes data -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page -U, --user-ids (Optional) Comma-separated list of Roblox user IDs ``` ## Delete Entry Marks the entry as deleted by creating a 'tombstone' version. Entries are deleted permanently after 30 days ``` USAGE: rbx-ds-cloud delete-entry [OPTIONS] --universe-id --api-key --datastore-name --key OPTIONS: -a, --api-key API key of Roblox Open Cloud -d, --datastore-name Name of the data store -k, --key The key which identifies the entry -s, --scope (Optional) If "None", defaults to global, similar to Lua API -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page ``` ## List Entry Versions Returns the versions and metadata of an Entry of a datastore ``` USAGE: rbx-ds-cloud list-entry-versions [OPTIONS] --universe-id --api-key --datastore-name --key --sort-order --limit OPTIONS: -a, --api-key API key of Roblox Open Cloud -c, --cursor (Optional) Cursor for the next set of data -d, --datastore-name Name of the data store -e, --end-time (Optional) End time constraint (ISO UTC Datetime) -k, --key The key which identifies the entry -l, --limit (INTEGER) Maximum number of items to return -o, --sort-order Sort order [possible values: ascending, descending] -s, --scope (Optional) If "None", defaults to global, similar to Lua API -t, --start-time (Optional) Start time constraint (ISO UTC Datetime) -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page ``` ## Get Entry Version Returns the metadata of a specific version of an entry ``` USAGE: rbx-ds-cloud get-entry-version [OPTIONS] --universe-id --api-key --datastore-name --key --version-id OPTIONS: -a, --api-key API key of Roblox Open Cloud -d, --datastore-name Name of the data store -k, --key The key which identifies the entry -s, --scope (Optional) If "None", defaults to global, similar to Lua API -u, --universe-id The value of DataModel.GameId, which is visible in the URL on the universe's Configure page -v, --version-id The version of the key ```