> [!CAUTION]
> You are currently viewing version 1.12 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions).

<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.12 </button>

- Supported versions:
- [v1.17 (latest)](https://docs.cloud.google.com/apigee/docs/hybrid/v1.17/apigee-pull-push.md.txt)
- [v1.16](https://docs.cloud.google.com/apigee/docs/hybrid/v1.16/apigee-pull-push.md.txt)
- [v1.15](https://docs.cloud.google.com/apigee/docs/hybrid/v1.15/apigee-pull-push.md.txt)
- [v1.14](https://docs.cloud.google.com/apigee/docs/hybrid/v1.14/apigee-pull-push.md.txt)
- [List of supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions)
- Unsupported versions:
- [v1.13](https://docs.cloud.google.com/apigee/docs/hybrid/v1.13/apigee-pull-push.md.txt)
- [v1.12](https://docs.cloud.google.com/apigee/docs/hybrid/v1.12/apigee-pull-push.md.txt)
- [v1.11](https://docs.cloud.google.com/apigee/docs/hybrid/v1.11/apigee-pull-push.md.txt)
- [v1.10](https://docs.cloud.google.com/apigee/docs/hybrid/v1.10/apigee-pull-push.md.txt)
- [v1.9](https://docs.cloud.google.com/apigee/docs/hybrid/v1.9/apigee-pull-push.md.txt)
- [v1.8](https://docs.cloud.google.com/apigee/docs/hybrid/v1.8/apigee-pull-push.md.txt)
- [v1.7](https://docs.cloud.google.com/apigee/docs/hybrid/v1.7/apigee-pull-push.md.txt)
- [v1.6](https://docs.cloud.google.com/apigee/docs/hybrid/v1.6/apigee-pull-push.md.txt)
- [v1.5](https://docs.cloud.google.com/apigee/docs/hybrid/v1.5/apigee-pull-push.md.txt)
- [v1.4](https://docs.cloud.google.com/apigee/docs/hybrid/v1.4/apigee-pull-push.html)
- [v1.3](https://docs.cloud.google.com/apigee/docs/hybrid/v1.3/apigee-pull-push.html)
- [v1.2](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/apigee-pull-push.html)
- [v1.1](https://docs.cloud.google.com/apigee/docs/hybrid/v1.1/apigee-pull-push.html)

`apigee-pull-push.sh` is a utility that pulls all the images for the current Google Cloud
project from the [Google
Cloud Container Registry](https://cloud.google.com/container-registry/) and pushes them to your specified repository.

> [!NOTE]
> **Note:** You can set the current project with `gcloud config set project` or `gcloud init`.

## Requirements

- Access to the [Google
  Cloud Container Registry](https://cloud.google.com/container-registry/)
- `gcloud`.


  To install or upgrade `gcloud`, see [Installing Google
  Cloud SDK](https://docs.cloud.google.com/sdk/docs/install)

## File location

`apigee-pull-push.sh` can be found in
`$APIGEE_HELM_CHARTS_HOME/apigee-operator/etc/tools/`

## Usage

### Syntax


`apigee-pull-push \[REPO\] \[--list\] \[--help\]`

### *Optional:* Check the current project in your `gcloud` context


This step is optional, because `apigee-pull-push.sh` will confirm the project and allow
you to proceed or abort.


`apigee-pull-push.sh` pulls the images for the current project in your
`gcloud` context. Check the project with the following command:

```
gcloud config list core/project --format='value(core.project)'
```


You can set the current project with the following command:

```
gcloud config set project PROJECT_ID
```


Where <var translate="no">PROJECT_ID</var> is the ID of the Google Cloud project for your Apigee hybrid installation.

### Push the Apigee hybrid image to a repository you name

```
apigee-pull-push.sh REPO
```


Where <var translate="no">REPO</var> is the URL of the repository, for example `/gcr.io/apigee-release`.

> [!NOTE]
> **Note:** The repository must be a protocol-less URL (without `HTTP` or `HTTPS`).
>
> For example, use `./apigee-pull-push.sh us-central1-docker.pkg.dev/apigee-hybrid-support-amer-01/hybrid`, instead of `./apigee-pull-push.sh https://us-central1-docker.pkg.dev/apigee-hybrid-support-amer-01/hybrid`.

### Push the Apigee image to the default repository

```
apigee-pull-push.sh 
```


This command pushes the image to `us.gcr.io/PROJECT_ID`, for example
`us.gcr.io/my-project`.

### List the images in your repository


Use the `--list` or `-l` option to list all the images in your repository.

```
apigee-pull-push.sh --list
```


Example output:

```
apigee:
        gcr.io/apigee-release/hybrid/apigee-mart-server:1.8.0
        gcr.io/apigee-release/hybrid/apigee-synchronizer:1.8.0
        gcr.io/apigee-release/hybrid/apigee-runtime:1.8.0
        gcr.io/apigee-release/hybrid/apigee-hybrid-cassandra-client:1.8.0
        gcr.io/apigee-release/hybrid/apigee-hybrid-cassandra:1.8.0
        gcr.io/apigee-release/hybrid/apigee-cassandra-backup-utility:1.8.0
        gcr.io/apigee-release/hybrid/apigee-udca:1.8.0
        gcr.io/apigee-release/hybrid/apigee-connect-agent:1.8.0
        gcr.io/apigee-release/hybrid/apigee-watcher:1.8.0
        gcr.io/apigee-release/hybrid/apigee-operators:1.8.0
        gcr.io/apigee-release/hybrid/apigee-installer:1.8.0
        gcr.io/apigee-release/hybrid/apigee-redis:1.8.0
        gcr.io/apigee-release/hybrid/apigee-diagnostics-collector:1.8.0
        gcr.io/apigee-release/hybrid/apigee-diagnostics-runner:1.8.0
third party:
        gcr.io/apigee-release/hybrid/apigee-stackdriver-logging-agent:1.8.9
        gcr.io/apigee-release/hybrid/apigee-prom-prometheus:v2.33.5
        gcr.io/apigee-release/hybrid/apigee-stackdriver-prometheus-sidecar:0.9.0
        gcr.io/apigee-release/hybrid/apigee-kube-rbac-proxy:v0.8.0
        gcr.io/apigee-release/hybrid/apigee-envoy:v1.16-latest
        gcr.io/apigee-release/hybrid/apigee-prometheus-adapter:v0.9.1
        gcr.io/apigee-release/hybrid/apigee-asm-ingress:1.12.6-asm.2-distroless
        gcr.io/apigee-release/hybrid/apigee-asm-istiod:1.12.6-asm.2
```

### Get help for `apigee-pull-push.sh`

```
apigee-pull-push.sh --help
```