# Read and write your Realtime Database with the Firebase CLI

DevFeed: [Read and write your Realtime Database with the Firebase CLI](<https://devfeed.tech/articles/read-and-write-your-realtime-database-with-the-firebase-cli-16244.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2017/12/read-and-write-your-realtime-database>)

Author: Doug Stevenson

Published: 2017-12-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [Realtime Database](<https://devfeed.tech/topics/realtime-database.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Script](<https://devfeed.tech/topics/script.md>), [Cloud Functions](<https://devfeed.tech/topics/cloud-functions.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [cloud-functions](<https://devfeed.tech/tags/cloud-functions.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firebase-cli](<https://devfeed.tech/tags/firebase-cli.md>), [json](<https://devfeed.tech/tags/json.md>), [realtime-database](<https://devfeed.tech/tags/realtime-database.md>), [script](<https://devfeed.tech/tags/script.md>)

## AI overview

This Firebase team tutorial explains how to use the Firebase CLI with Bash to read and write data in Firebase Realtime Database. It covers writing from JSON files or command-line input, piping JSON through standard input, and scripting database setup for integration tests and Cloud Functions.

## Source excerpt

News, tutorials, and updates from the Firebase team.