Add public data
Use the dexie-cloud CLI to import data into the public realm as follows:
- Use npx dexie-cloud databases to verify you are connected to the correct DB. If not, use npx dexie-cloud connect to connect to it. If you have no DB, use npx dexie-cloud create to create one.
- Create a JSON file (let's name it "publicData.json"):
{ "data": { "rlm-public": { "products": { "prd1": { "price": 60, "title": "Black T-shirt, size M", "description": "A nice black T-shirt (medium)" }, "prd2": { "price": 70, "title": "Blue Jeans", "description": "Plain blue jeans" } } } } } - Import the file
npx dexie-cloud import publicData.json
List current public data
npx dexie-cloud export --data --realmId rlm-public existingData.jsonmore existingData.json
How to delete, update or manage data using the CLI
See cli#import