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

> Scaffold a new Package

```sh
akua pkg init [flags] [<name>]
```

| Argument | Required | Description |
| - | - | - |
| `<name>` | no | Name for the new Package, and the directory created for it; absent, the current directory and its basename |

| Flag | Type | Description |
| - | - | - |
| `--force` | boolean | Overwrite existing scaffold files instead of aborting |
| `--k8s` | string | Kubernetes version the Package's resources are typed against: a `oci://ghcr.io/kcl-lang/k8s` tag (default `1.35`, pinned in akua.lock; run `lock` to pin another) |

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.
