Migrating to the new CLI Script on Older Versions of Honeycomb #293
RobertGemmaJr
started this conversation in
Tips and Tricks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Honeycomb v3.2.0 ships with a brand new script for managing data in Firebase! This script is beneficial for older versions of Honeycomb as well. It can be added to your repository without having to update all of the code in your repository.
Note that we have only validated this process for version 3 of Honeycomb. There may be additional steps and/or issues when working with Honeycomb prior to version 3.
1) Create the file
Create a new file at the root of your file, name it cli.mjs and copy the script into it:
2) Install Inquirer
The CLI script uses inquirer which will not be in your repository. Open a terminal at the root of your repository and run the following command:
3) Add an
npm
script for running the CLIAdd the following script to your
package.json
. It must be added inside thescripts
section4) Delete the old npm script
download-response-data.js
can be deletedfirebase:download
can be deleted frompackage.json
5) Try it out!
Instructions for using the script are included in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions