---
title: "ezgh auth"
description: "Credentials: status, login, logout, API keys for profiles."
---

> 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 auth

{/* 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 auth <command>
```

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh auth login`](/cli/reference/auth-login) | Log in with your EZGH Cloud account (OAuth 2.1) |
| [`ezgh auth logout`](/cli/reference/auth-logout) | Log out: revoke the profile's login and forget its credential |
| [`ezgh auth set-api-key`](/cli/reference/auth-set-api-key) | Store an API key as the profile's credential, read from stdin |
| [`ezgh auth status`](/cli/reference/auth-status) | Show which profile and credential commands use |

Source: https://docs.ezghcloud.com/cli/reference/auth/index.mdx
