firebase database:update /users/ada -d '{"age": 36}'

Category: Firebase & Firestore

firebase database:update /users/ada -d '{"age": 36}'

Merge fields into an existing record

Merges the provided JSON into /users/ada, adding or updating only those keys while leaving all other children untouched. This is the safe counterpart to database:set, which replaces the entire path. The -d flag supplies inline JSON; you can also pass a file path.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.