Run setup steps 1-2 with gcloud
gcloud_setupPrepare a Google Cloud project and enable the Drive API with gcloud CLI. Plan-only mode surfaces commands for approval; confirm mode runs them, including auth login when required.
Instructions
For users who have the gcloud CLI: prepare a Google Cloud project and enable the Drive API on the user's behalf. Without confirm it only reports what it would run (planned_commands) — show that to the user and ask for approval. With confirm: true it runs those commands (and gcloud auth login, opening a browser, if gcloud has no active account). Steps 3-4 (consent screen, Desktop-app OAuth client) cannot be automated and are returned as next_steps with project-scoped Console links, plus console_form with sample values for every field (show it to the user as a table).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Default false (plan only). true = execute the planned commands. | |
| project_id | No | Project ID to use or create. Default: gcloud's current project, else a generated drivelift-xxxxxxxx. | |
| login_if_needed | No | Default true. With confirm, run `gcloud auth login` when no gcloud account is active. |