---
title: "alpacon username get"
description: "Check the username used for server access in Alpacon. Read the result as JSON for scripts, or follow the error guidance to set a username if none exists yet."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon username get

Show the username for your account.

## Usage

`alpacon username get [flags]`

## Key facts

- The result is the username used for server access.
- If no username is set, the command exits with an error.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | help for get | `false` |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

Show your username

```bash
alpacon username get
```

Output as JSON (useful for scripting)

```bash
alpacon username get --output json
```

If you have no username yet, follow the error message and run `alpacon username set NAME`.

Source: https://docs.alpacax.com/reference/cli/username/get/
