Firebase CLI questions and [FlutterFire CLI] CLI doesn't find Firebase CLI - flutter

I am trying to connect Firebase with my flutter app.
for this, firebase takes me to install firebase CLI.
Question1: is there another way?
I downloaded firebase-tools-instant-win.exe and everytime I want to run firebase command, I have to run it.
Question2: is it the right way? because normal cmd, does not recognize its commands. I cant seem to put my environment variables on the right path.
Then, in AndroidStudio, inside the folder containing my app, I run flutterfire configure --project=projidy2.
Question3: FlutterFire CLI asks me to install Firebase CLI even if it is already installed, and logged in my account.
E:\android\webrtc_tutorial>flutterfire configure --project=projidy2
i Found 0 Firebase projects. Selecting project projidy2.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/do
cs/cli#install_the_firebase_cli for how to install it.
flutterfire --version
0.2.7
firebase --version
11.20.0

Related

"firebase deploy --only hosting" suddenly failing with "Error: Failed to list functions for <PROJECT>"

My firebase hosting deployments have suddenly started failing both in my Github CI Workflows and from my local machine.
$ firebase deploy --only hosting
=== Deploying to '<project>'...
i deploying hosting
Error: Failed to list functions for <project>
The project in question does not have any functions, and only hosts a static site. Google searches for "Failed to list functions" turn up empty, it seems like not a common problem. The only leads I can find indicate some kind of network error.
I have updated my firebase-tools, logged out and in again to generate a new CI token, tried the process from my Github workflows and also manually from my machine, all to the same effect.
I can't find any information about this problem, except that the error seems to come from this part of the firebase-tools codebase:
https://github.com/firebase/firebase-tools/blob/c0f19a32845135108c75a1050024965cb1e3f52d/src/gcp/cloudfunctions.ts
My firebase tools version was 11.14.0. I changed that to 11.13.0. Installed this specific version through npm install -g firebase-tools#11.13.0. After that I could successfully deploy.
I came across the issue. using firebase-tools version 10.5 or upgrading it to blaze plan fixed my issue

Error while building up multicontainer app PostgreSQL and pgadmin4

I'm trying to build multi-container app that includes PostgreSQL and pgadmin4 with single docker-compose file. But I'm getting stuck here.
This is my docker-compose file
I'm sorry. I later realized that both services were running properly. Its only that I'm not getting any confirmation on the CLI but I'm able to access from browser.

Unable to install gcloud SDK

When I try to install google cloud SDK, I was getting the following error:
ERROR:
(gcloud.components.update) Failed to fetch component listing from
server. Check your network settings and try again. This will install
all the core command line tools necessary for working with the Google
Cloud Platform. Failed to install.
After reinstalling python (v3.7.0), I added the path and also added CLOUDSDK_PYTHON environment variable to make sure. Now when I attempt the installation, the installation simply hangs:
If I attempt the installation trough terminal by executing install.bat, it also gets stuck after requesting to send diagnostics to google:
Welcome to the Google Cloud SDK!
Active code page: 65001
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is
handled in accordance with our privacy policy
<https://policies.google.com/privacy>. You may choose to opt in this
collection now (by choosing 'Y' at the below prompt), or at any time in the
future by running the following command:
gcloud config set disable_usage_reporting false
Do you want to help improve the Google Cloud SDK (y/N)? n
Nothing gets printed after that.
it seems that the "(gcloud.components.update) Failed to fetch component listing from server" error might be caused by some proxies or antivirus in your environment, I'd recommend you to try a clean installation in a vm or using another network.
Also, I was able to find soem similar errors for this on issue tracker and the team gave a soltion at comment10, also, as you can see on the issue tracker, sometimes this behavior is because the Python SDK is installed on default "Program Files" location, you could give it a try by changing the location of the python SDK

bluemix deploy the app with the command line interface

I have installed the IBM® Bluemix® and Cloud Foundry command line interfaces.
However, when I try to use the Bluemix command in bash, it states that the command is not found.
Is there any thing to do before using the command?
If you installed the Bluemix CLI and you get a "command not found" when you type the command bluemix, that would indicate that you are encountering path issues.
Potential steps to resolve this issue are:
Closing and re-opening your terminal
Reinstalling the plugin
Finding where you installed the plugin and launching the binary from the terminal (and optionally creating an alias)
Note: The Bluemix CLI command line interface is not supported by Cygwin. Use the Bluemix CLI in a command line window other than the Cygwin command line window.
After getting the CLI installed, you will need to target the correct endpoint using bx api or cf api.
Finally you will need to login using bx login or cf login.

Unable to deploy using firebase 3.0.0

I'm trying to deploy using firebase 3.0.0 latest CLI version.
Unfortunately I get this errors:
Error: Unable to authorize access to project XXXX
Note: This version of the Firebase CLI is only compatible with projects upgraded
to the new Firebase Console. To access firebase.com apps, you will need to
use a previous version: npm install -g firebase-tools#^2.1
Any ideas?
As a matter of fact I was trying to deploy to a custom domain that was not yet verified.
My bad :(
Sorry guys.
I believe you need to upgrade your project to the new Firebase at firebase.google.com. If you haven't you should check out the announcements at Google I/O 2016.