[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-18 UTC。"],[[["\u003cp\u003eThis page details the use of the \u003ccode\u003egcloud apigee\u003c/code\u003e and \u003ccode\u003egcloud beta apigee\u003c/code\u003e command-line interfaces (CLIs) for managing Apigee and Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud apigee\u003c/code\u003e CLI allows users to view API proxies, manage API products, deploy proxies, and access information about developers, apps, environments, and organizations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud beta apigee\u003c/code\u003e CLI component must be installed separately to deploy and manage archives, and the \u003ccode\u003egcloud components install beta\u003c/code\u003e command can be used for this.\u003c/p\u003e\n"],["\u003cp\u003eSetting environment variables like \u003ccode\u003e$ORG\u003c/code\u003e, \u003ccode\u003e$API\u003c/code\u003e, and \u003ccode\u003e$ENV\u003c/code\u003e can simplify the execution of \u003ccode\u003egcloud\u003c/code\u003e CLI commands.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud apigee\u003c/code\u003e commands can be used to list API proxies within an organization, as demonstrated by \u003ccode\u003egcloud apigee apis list --organization=$ORG\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\n\nThe **gcloud apigee** CLI enables you to perform the following:\n\n- View API proxies\n- Create and manage API products\n- Deploy and undeploy API proxies, and view deployment details\n- View information about developers and apps\n- List your environments and organizations\n- Manage third-party applications that call Apigee API proxies\n\n\nIn addition, the **gcloud beta apigee** CLI enables you to deploy and manage archives in your Apigee environment.\n\nThe following sections describe how to install, authorize, and use the `gcloud apigee` and `gcloud beta apigee` CLIs, and optionally set environment variables.\n\nBefore you begin\n\n\nEnsure that you have met the [prerequisites](/apigee/docs/api-platform/get-started/overview#prerequisites) for using Apigee,\nincluding installing the [Google Cloud SDK](/sdk/install).\n| **Note:** As an alternative, you can use the [Google Cloud Shell](https://console.cloud.google.com/?cloudshell=true). The Google Cloud Shell is a command-line environment that already includes the Google Cloud SDK, so you wouldn't need to install it.\n\nInstalling the gcloud beta apigee components\n\n\nTo access the `gcloud beta apigee` commands, you must install the\ncomplete gcloud beta component, as follows: \n\n```\ngcloud components install beta\n```\n\n\nTo confirm that the beta component has been installed, enter the following command: \n\n```\ngcloud components list\n```\n\n\nYou should see the beta component in the list, as follows:\n\n| Status | Name | ID | Size |\n|-----------|----------------------|------|----------|\n| Installed | gcloud Beta Commands | beta | \\\u003c 1 MiB |\n\n\nFor more information, see [Managing SDK components](/sdk/docs/components).\n\nAuthorizing access to gcloud\n\n\nAuthorize access to the `gloud` CLI by following the steps described in\n[Authorizing Cloud SDK tools](/sdk/docs/authorizing#user-account).\n\n\nFor example, to authorizes access using your user account and perform other common Cloud SDK setup steps, use the following\ncommand:\n\n```\ngcloud init\n```\n\n\nFollow the prompts to authenticate the account, grant access permissions, and initialize your Cloud SDK installation, as described in [Initializing Cloud SDK](/sdk/docs/initializing).\n\n\nAlternatively, to authorize access without performing any additional set up, use the following command: \n\n```\ngcloud auth login\n```\n\n\nFollow the browser-based authorization flow to authenticate the account and grant access permissions.\n\nFor more information about authorizing and revoking access to the gcloud CLI, see\n[Credentials](/sdk/docs/cheatsheet#credentials).\n\nSetting environment variables for gcloud commands\n\n\nThe Apigee API and gcloud CLI examples provided throughout the documentation use one or more of the environment variables defined\nin the following table.\n\nBy setting the environment variables upfront to meaningful values in your environment, you can copy and paste the example requests\nto execute them in your own environment with minimal or no modifications.\n\n| Environment variable | Description |\n|----------------------|----------------------------------------------------------------------------------|\n| `$API` | Name of your API proxy. |\n| `$APIPRODUCT` | Name of the API product. |\n| `$APP` | ID of an app. |\n| `$DEVELOPER_EMAIL` | Email address of the developer. |\n| `$ENV` | Name of your environment, such as `test` or `prod`. |\n| `$ID` | Resource ID. |\n| `$KEY` | Consumer key. |\n| `$NAME` | Name of your resource. |\n| `$ORG` | Your Apigee organization. |\n| `$REV` | Revision number of your API proxy. |\n| `$SHAREDFLOW` | Name of your shared flow. |\n| `$TYPE` | [Resource type](/apigee/docs/api-platform/develop/resource-files#resourcetypes). |\n\nUsing the gcloud CLI\n\n\nUse the `gcloud` CLI as follows: \n\n```\ngcloud apigee \u003cvar translate=\"no\"\u003eGROUP\u003c/var\u003e [\u003cvar translate=\"no\"\u003eGCLOUD_WIDE_FLAG\u003c/var\u003e …]\n```\n\n\nFor more information about the available command groups and flags, see [gcloud apigee](/sdk/gcloud/reference/apigee).\n\n\nFor example, the following command lists the API proxies in your organization: \n\n```\ngcloud apigee apis list --organization=$ORG\n```\n\n\nThe following provides an example of the response for the `my-org` organization: \n\n```\nUsing Apigee organization `myorg`\n - hello-world\n - weather-app\n \n```\n\nMore information\n\n\nFor more information, see:\n\n- [gcloud apigee](/sdk/gcloud/reference/apigee)\n- [gcloud beta apigee](/sdk/gcloud/reference/beta/apigee)\n- [gcloud command-line tool overview](/sdk/gcloud)\n- [Managing SDK components](/sdk/docs/components)\n- [Scripting gcloud CLI commands](/sdk/docs/scripting-gcloud)"]]