| name | gcloud-apigee |
| description | Apigee API Management via gcloud (`gcloud apigee`). Manage Apigee resources — apis, applications, deployments, developers, environments, organizations, products. |
gcloud apigee — Apigee API Management
Overview
gcloud apigee manages resources in Apigee, Google Cloud's full-lifecycle API management platform for designing, securing, deploying, monitoring, and monetizing APIs. The GA command surface covers the core publishing workflow: discovering organizations and environments, listing and deploying API proxies, and packaging proxies into API products consumed by registered developers and applications. Reach for it when you need to script proxy deployments or product/developer administration from the CLI rather than the Apigee UI.
Apigee organizations are distinct from Cloud Platform organizations and usually map one-to-one to a Cloud Platform project. Almost every command accepts --organization; if you omit it, the active project's associated Apigee organization is used.
Quick reference — common workflows
Enable the API (prerequisite)
gcloud services enable apigee.googleapis.com
gcloud services enable compute.googleapis.com
gcloud services enable servicenetworking.googleapis.com
gcloud services enable cloudkms.googleapis.com
1. Discover organizations and environments
gcloud apigee organizations list
gcloud apigee environments list
gcloud apigee environments list --organization=my-org
2. List and inspect API proxies
gcloud apigee apis list
gcloud apigee apis list --organization=my-org --format=json
gcloud apigee apis describe my-proxy --verbose
3. Deploy an API proxy to an environment
gcloud apigee apis deploy --api=my-proxy --environment=test
gcloud apigee apis deploy 3 --api=my-proxy --environment=prod \
--organization=my-org --override
gcloud apigee deployments describe --api=my-proxy --environment=prod
gcloud apigee deployments list
gcloud apigee deployments list --api=my-proxy --environment=prod \
--organization=my-org
4. Undeploy an API proxy
gcloud apigee apis undeploy --api=my-proxy --environment=test
gcloud apigee apis undeploy 3 --api=my-proxy --environment=prod \
--organization=my-org
5. Create and publish an API product
gcloud apigee products create my-product \
--environments=prod --all-proxies --public-access \
--display-name="My Product" \
--description="Public API product for prod environment"
gcloud apigee products create gated-product \
--environments=prod --all-proxies --public-access \
--quota=50 --quota-interval=1 --quota-unit=minute \
--manual-approval
gcloud apigee products create consumer \
--environments=prod --apis=menu,cart,delivery-tracker \
--resources="/v1/**" --public-access
gcloud apigee products list
gcloud apigee products describe my-product --format=json
6. Update a product and review developers/apps
gcloud apigee products update my-product \
--quota=45 --quota-interval=1 --quota-unit=minute \
--automatic-approval --public-access
gcloud apigee products update my-product \
--add-api=new-proxy --remove-api=old-proxy
gcloud apigee developers list
gcloud apigee developers describe developer@example.com
gcloud apigee applications list
gcloud apigee applications list --developer=developer@example.com
Command groups
| Group | Reference file | Commands | Description |
|---|
apigee apis | apis.md | 4 | manage Apigee API proxies (list, describe, deploy, undeploy) |
apigee applications | applications.md | 2 | manage third-party applications which call Apigee API proxies |
apigee deployments | deployments.md | 2 | manage deployments of Apigee API proxies in runtime environments |
apigee developers | developers.md | 2 | manage Apigee developers |
apigee environments | environments.md | 1 | manage Apigee environments |
apigee organizations | organizations.md | 1 | manage Apigee organizations |
apigee products | products.md | 5 | manage Apigee API products |
See index.md for a one-line index of all 17 GA commands.
Common flags & tips
--organization — present on nearly every command. Omit it to use the Apigee org paired with the active project, or pass it explicitly to act across projects. gcloud apigee organizations list shows every org your credentials can reach.
- Resource selection on
apis deploy/undeploy and deployments describe — the proxy revision is a positional argument. A bare number (e.g. 3) targets that revision; on deploy, omitting it means latest; on undeploy/describe it means auto (the currently deployed revision). Pair with --api and --environment.
--override on deploy — required for zero-downtime replacement when a conflicting revision is already deployed; without it, deploy fails until conflicts are undeployed.
- Product access level — exactly one of
--public-access, --private-access (unlisted), or --internal-access. Approval mode is --manual-approval vs --automatic-approval (update only).
- Product scope —
--all-proxies vs --apis=API,..., and --all-environments vs --environments=ENV,.... Narrow further with --resources="/v1/**" (use # to separate multiple resource paths, e.g. --resources="/v0/**#/v1/**").
- Quotas — set all three together:
--quota, --quota-interval, --quota-unit (e.g. minute). On update, clear with --clear-quota.
--filter / --format — every list command supports them. Examples: gcloud apigee organizations list --filter="project:(sandbox)", --format=json for machine-readable output, gcloud apigee apis list --uri for bare resource URIs.
- Developers are keyed by email —
gcloud apigee developers describe developer@example.com. Applications are keyed by UUID; filter app listings by owner with --developer.
beta / alpha
Both gcloud beta apigee and gcloud alpha apigee exist and include all GA groups plus two extra groups:
apigee archives (beta + alpha) — manage Apigee archive deployments: deploy, list, describe, update, and delete local archive bundles to environments (used for Apigee hybrid / config-as-bundle workflows). E.g. gcloud beta apigee archives deploy.
apigee operations (beta + alpha) — list and poll long-running asynchronous operations returned by other Apigee calls. E.g. gcloud beta apigee operations list.
Official documentation
- Apigee API Management docs home — guides, references, quickstarts, and tutorials for the full platform.
- Get started overview — before-you-begin and provisioning paths by deployment model.
- Provisioning introduction — required API-enable steps and permissions for standing up an org.
- What is an API product? — concepts behind the
apigee products commands.
- Apigee IAM roles — predefined
roles/apigee.* roles (admin, deployer, apiAdminV2, developerAdmin, environmentAdmin, analyticsViewer, readOnlyAdmin, synchronizerManager).
- gcloud apigee reference (GA) — full CLI command reference.
- gcloud beta apigee reference — adds the
archives and operations groups.