Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Matt Ruiz
Matt Ruiz

Posted on

command not found: gsutil

Hola hola,

I ran into this error when trying to retrieve the most recent backup we have for one of our apps that use Firebase Cloud Functions.

Here's the command I was trying to run from our Cloud Function Node project:

gsutil ls -l gs://{APP_FIRESTORE}-backup/backups/ | sort -k2 | tail -n1
Enter fullscreen modeExit fullscreen mode

Looking to Google

I typedcommand not found: gsutil cloud functions nodejs into Google and foundthis Google Cloud documentation.

After downloading and extracting the.tar.gz file from step 2, I ran the following two commands from the folder that contains the extracted.tar.gz:

  • ./google-cloud-sdk/install.sh in the folder where the extracted.tar.gz existed (which was Downloads for me).
  • ./google-cloud-sdk/bin/gcloud init
    • This part can happen fast and you may chose the wrong project like I did.Here's a quick post about switching projects.
    • Note: You may need to restart your terminal after installinggcloud.

That worked for my situation and I hope it helps others getting thecommand not found: gsutil.

  • Matt

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
respect17 profile image
Kudzai Murimi
FullStack Developer and Content Writer
  • Location
    Capetown, South Africa
  • Joined

Thanks!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Head coder for Pencil Bible, Amplinks, and others.
  • Joined

More fromMatt Ruiz

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp