---
title: "ezgh git credential-helper"
description: "Give Git this profile's credential for EZGH Git repositories."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh git credential-helper

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh git credential-helper <get|store|erase>
```

A Git credential helper: for an EZGH Git clone URL (https://&lt;host&gt;.git.ezghcloud.com/…) it gives Git this profile's API key (`EZGH_API_KEY`, the profile's API key or the instance's Bot key), so clone, fetch and push work without a password prompt. EZGH Git takes only API keys: with a login from `ezgh login` it gives nothing and says to create one (`ezgh iam api-keys create`). For any other host it gives nothing, and Git asks the next helper. store and erase do nothing. Keep the key in a profile of its own, so your login stays, and set it up once:

```text
ezgh --profile git auth set-api-key
git config --global credential.https://*.git.ezghcloud.com.helper '!ezgh --profile git git credential-helper'
```

Git runs it with get, store or erase, and the request on standard input.

Part of [`ezgh git`](/cli/reference/git).

## Examples

```sh
ezgh --profile git auth set-api-key < key.txt
git config --global credential.https://*.git.ezghcloud.com.helper '!ezgh --profile git git credential-helper'
git clone https://4k2m9x0a7qpe.git.ezghcloud.com/site.git
```

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/git-credential-helper/index.mdx
