firebase database:push /messages -d '{"text": "hello"}'

Category: Firebase & Firestore

firebase database:push /messages -d '{"text": "hello"}'

Append data to a database list

Adds the JSON object to the /messages list and lets Realtime Database generate a unique push key for it, producing /messages/-NxyzABC. Use push for chat-style append-only lists where you need unique IDs. Related: database:set replaces data at an exact path instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.