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

# E_AUTH_PARSE

> An --auth prefix=user:password value or an --auth-file TOML payload did not parse.

An `--auth <prefix>=<user>:<password>` value or an `--auth-file` TOML payload did not parse. Distinct from `E_INVALID_FLAG` so callers can branch on credential input specifically.

## How to fix it

Each `--auth` value is one credential, keyed by URL prefix; repeat the flag for more hosts:

```sh
akua pkg vendor add upstream --auth github.com/myco=alice:$GH_TOKEN
```

An `--auth-file` holds the same credentials under an `[auth]` table. Flag values override file entries for the same prefix:

```toml
[auth]
"github.com/myco" = { username = "alice", password = "<token>" }
```

## Shape

```json
{
  "level": "error",
  "code": "E_AUTH_PARSE",
  "message": "...",
  "docs": "https://docs.akua.dev/akua/errors/E_AUTH_PARSE"
}
```

## Related topics

> [card] [Error codes](https://docs.akua.dev/akua/errors.md)
>
> What each structured error means and how to resolve it.

> [card] [akua pkg commands](https://docs.akua.dev/akua/cli.md)
>
> Every command, the universal flags and the exit codes.
