> ## 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.

# akua pkg sign

> Produce a cosign signature sidecar for a packed tarball

```sh
akua pkg sign [flags]
```

| Flag | Type | Description |
| - | - | - |
| `--tarball` | string | Pre-packed tarball to sign |
| `--ref` | string | Repository it will be pushed to (`oci://<registry>/<repo>`) |
| `--tag` | string | Tag it will be pushed under |
| `--key` | string | PEM PKCS#8 P-256 private key; defaults to akua.toml [signing].cosign_private_key |
| `--workspace` | string | Workspace root containing akua.toml |
| `--out` | string | Sidecar path; defaults to <tarball>.akuasig |

Every command also accepts the [universal flags](https://docs.akua.dev/akua/cli#universal-flags).

## Related topics

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

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