-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase database:set --confirm
reports "STDIN input not available for Windows"
#1221
Comments
You also cannot run ...
... as you'd expect since the So 3 bugs/limitations here:
|
For my fellow Firebase devs who stumble on this issue ... this tool might be useful: |
NodeJs since 8.3.0 can read STDIN on Windows (fix: nodejs/node#10836) and Firebase has migrated to Node 8.15.0 or later. You could remove your STDIN constraint by testing |
Thank you for the feedback @tohagan! Can you confirm that upgrading to Node version 8.3.0 fixes the problem for you? If so, we always welcome PRs, and I would be happy to review one from you! Please refer to contribution.md for how to make contributions to the Firebase CLI. |
Note that to set the contents of a file, you don't need to pipe:
The above will read the contents of file_to_set.json and set them to the database at the specified path. |
That now works! Thanks. I'm running Node 8.15.0 locally and upgraded to latest firebase CLI 6.10.0 |
[REQUIRED] Environment info
firebase-tools: 6.7.1
Platform: Windows 10
Shell: bash (Mingw)
[REQUIRED] Test case
NOTE: the path required two slashes // due to another BUG that's already been reported.
[REQUIRED] Steps to reproduce
echo ./some/path/TEST.json | firebase database:set //some/path/TEST --confirm
Outputs
Error: STDIN input is not available on Windows.
[REQUIRED] Expected behavior
No Error
[REQUIRED] Actual behavior
STDIN error
So basically there is no way using the current CLI to automate importing JSON files.
There are 2 BUGS here actually, one previously reported.
The text was updated successfully, but these errors were encountered: