- INFORMATION
-
gcloud beta apigee apis importis supported in universe domainuniverse; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution. - NAME
-
- gcloud beta apigee apis import - import an Apigee API proxy from local files
- SYNOPSIS
-
-
gcloud beta apigee apis import(API:--organization=ORGANIZATION) (--from-bundle=BUNDLE_PATH|--from-template=TEMPLATE_PATH) [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)Import an Apigee API proxy from local files.gcloud beta apigee apis importuploads local files describing an API proxy to Apigee. If an API proxy with the given name already exists, a new revision is created; otherwise, a new API proxy is created.The API proxy source is provided in exactly one of two formats. Use
--from-bundleto upload a standard Apigee API proxy bundle ZIP, which stores the proxy configuration under anapiproxy/directory. Use--from-templateto build the API proxy from an Apigee Feature Template: a YAML file that composes one or more reusable feature files into an API proxy, which is compiled into a bundle locally before being uploaded.When using
--from-template, any feature files referenced by the template must reside in the same directory as the template file.To use this command, the active Cloud Platform project must have an associated Apigee organization, or an organization must be specified with
--organizationor by providing the fully qualified name (FQN) of the API proxy as the API proxy name (for example,).organizations/my-org/apis/helloworld - EXAMPLES
-
To import an API proxy named
from a local bundle ZIP, given that the matching Cloud Platform project has been set in gcloud settings, run:helloworldgcloud beta apigee apis import helloworld --from-bundle=./helloworld.zipTo import an API proxy named
from an Apigee Feature Template, run:helloworldgcloud beta apigee apis import helloworld --from-template=./helloworld.yamlTo import that API proxy into an organization named
, run:my-orggcloud beta apigee apis import helloworld --organization=my-org --from-template=./helloworld.yamlAlternatively, the organization can be specified by providing the fully qualified name of the API proxy:
gcloud beta apigee apis import organizations/my-org/apis/helloworld --from-bundle=./helloworld.zipTo import that API proxy and print the resulting revision as a JSON object, run:
gcloud beta apigee apis import helloworld --from-template=./helloworld.yaml --format=json - POSITIONAL ARGUMENTS
-
-
API proxy resource - API proxy to import or update. If an API proxy with this
name already exists in the organization, a new revision is created. The
arguments in this group can be used to specify the attributes of this resource.
This must be specified.
API-
ID of the API proxy or fully qualified identifier for the API proxy.
To set the
apiattribute:-
provide the argument
APIon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--organization=ORGANIZATION-
Apigee organization containing the API proxy. If unspecified, the Cloud Platform
project's associated organization will be used.
To set the
organizationattribute:-
provide the argument
APIon the command line with a fully specified name; -
provide the argument
--organizationon the command line; - set the property [project] or provide the argument [--project] on the command line, using a Cloud Platform project with an associated Apigee organization.
-
provide the argument
-
API proxy resource - API proxy to import or update. If an API proxy with this
name already exists in the organization, a new revision is created. The
arguments in this group can be used to specify the attributes of this resource.
- REQUIRED FLAGS
-
-
Source from which to import the API proxy.
Exactly one of these must be specified:
--from-bundle=BUNDLE_PATH-
Path to an Apigee API proxy bundle ZIP file to import the API proxy from.
The ZIP file must contain the API proxy configuration under an
apiproxy/directory. --from-template=TEMPLATE_PATH-
Path to an Apigee Feature Template YAML file to import the API proxy from.
The template composes one or more reusable feature files into an API proxy. Any feature files referenced by the template must reside in the same directory as the template file. The template is compiled into an API proxy bundle locally before being uploaded to Apigee.
-
Source from which to import the API proxy.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
-
This command is currently in beta and might change without notice. This variant
is also available:
gcloud alpha apigee apis import
gcloud beta apigee apis import
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-30 UTC."],[],[]]