0

I want to user gcloud command in cloud Functions source

main.py

import os
command = 'gcloud --project {}~~'

os.system(command)

but erorr

sh: 1: gcloud: not found
1
  • 1
    There is no gcloud in CF. You may need to use the libraries of the product you wish to interact with Commented Jan 12, 2023 at 8:10

1 Answer 1

1

As @puteri said You may need to use the libraries of the product you wish to interact with. So, Can you install this Python Client for Cloud Functions and also refer to this multiple Python Cloud Client Libraries . Post installing this python client that may help in resolving your issue.

Also, gcloud command not found error occurs if your installation is unsuccessful due to the find command not being recognized find this SO . You can Try another alternate way to resolve this issue by installing the cloud SDK

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.