---
title: "ezgh objects credentials"
description: "Print an AWS CLI profile for an access key."
---

> 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 objects credentials

{/* 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 objects credentials <key>
```

Print an AWS CLI profile for an access key (oak\_…), for ~/.aws/config. It needs AWS CLI 1.29 or 2.13, or later.

A key's secret is shown only when the key is created, so the profile has a comment in its place: add the line yourself. `ezgh objects keys create --print-credentials` prints a whole profile.

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

## Examples

```sh
ezgh objects credentials oak_4k2m9x0a7qpe >> ~/.aws/config
aws --profile ezgh s3 ls
```

## Flags

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

Source: https://docs.ezghcloud.com/cli/reference/objects-credentials/index.mdx
