firebase database:set /users/ada -d '{"name": "Ada"}'

Category: Firebase & Firestore

firebase database:set /users/ada -d '{"name": "Ada"}'

Replace data at a database path

Replaces everything at /users/ada with the inline JSON provided by -d, after a confirmation prompt unless you pass -f. Any existing children not present in the new data are deleted, so this is destructive to that path. For merging fields instead, use database:update.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.