5

According to the CLI docs and its own help command, I just need to pass it the path (which I assume is the path on the project), my json file, and any options. So this is what I do (while I'm in the folder containing the json data):

firebase database:set --project MyProject / myJsonData.json

where I want / to be the root of my project, I want to wipe out existing data and replace it with the data in myJsonData.json. However whenever I run this, even with changing parameter order, or putting the / in quotes, it tells me Error: Path must begin with /. The path is /, so I don't know what it's complaining about. There's no examples of this command in use, so I don't know what it's expecting...

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
IronWaffleMan
  • 2,513
  • 5
  • 30
  • 59

1 Answers1

12

Turns out the answer is to put // as the path. Now I get an Unexpected error while setting data, but that's another issue.

IronWaffleMan
  • 2,513
  • 5
  • 30
  • 59