2022-06-15 07:51:47 +00:00
---
title: "authelia-gen code"
description: "Reference for the authelia-gen code command."
lead: ""
2022-06-27 08:27:57 +00:00
date: 2022-06-15T17:51:47+10:00
2022-06-15 07:51:47 +00:00
draft: false
images: []
menu:
reference:
parent: "cli-authelia-gen"
weight: 330
toc: true
---
## authelia-gen code
Generate code
```
authelia-gen code [flags]
```
### Options
```
-h, --help help for code
```
2022-09-16 04:21:05 +00:00
### Options inherited from parent commands
```
-C, --cwd string Sets the CWD for git commands
2022-10-22 11:19:32 +00:00
--dir.docs string The directory with the docs (default "docs")
--dir.docs.cli-reference string The directory to store the markdown in (default "en/reference/cli")
--dir.docs.content string The directory with the docs content (default "content")
--dir.docs.data string The directory with the docs data (default "data")
2022-09-16 04:21:05 +00:00
--dir.locales string The locales directory in relation to the root (default "internal/server/locales")
-d, --dir.root string The repository root (default "./")
-X, --exclude strings Sets the names of excluded generators
--file.bug-report string Sets the path of the bug report issue template file (default ".github/ISSUE_TEMPLATE/bug-report.yml")
--file.commit-lint-config string The commit lint javascript configuration file in relation to the root (default "web/.commitlintrc.js")
--file.configuration-keys string Sets the path of the keys file (default "internal/configuration/schema/keys.go")
2022-10-02 03:32:16 +00:00
--file.docs-commit-msg-guidelines string The commit message guidelines documentation file in relation to the root (default "docs/content/en/contributing/guidelines/commit-message.md")
2022-10-22 11:19:32 +00:00
--file.docs.data.keys string Sets the path of the docs keys file (default "configkeys.json")
--file.docs.data.languages string The languages docs data file in relation to the docs data folder (default "languages.json")
--file.docs.data.misc string The misc docs data file in relation to the docs data folder (default "misc.json")
2022-09-16 04:21:05 +00:00
--file.feature-request string Sets the path of the feature request issue template file (default ".github/ISSUE_TEMPLATE/feature-request.yml")
--file.scripts.gen string Sets the path of the authelia-scripts gen file (default "cmd/authelia-scripts/cmd/gen.go")
2022-10-22 11:19:32 +00:00
--file.server.generated string Sets the path of the server generated file (default "internal/server/gen.go")
2022-09-16 04:21:05 +00:00
--file.web-i18n string The i18n typescript configuration file in relation to the root (default "web/src/i18n/index.ts")
--package.configuration.keys string Sets the package name of the keys file (default "schema")
--package.scripts.gen string Sets the package name of the authelia-scripts gen file (default "cmd")
--versions int the maximum number of minor versions to list in output templates (default 5)
```
2022-06-15 07:51:47 +00:00
### SEE ALSO
* [authelia-gen ](authelia-gen.md ) - Authelia's generator tooling
* [authelia-gen code keys ](authelia-gen_code_keys.md ) - Generate the list of valid configuration keys
2022-09-16 04:21:05 +00:00
* [authelia-gen code scripts ](authelia-gen_code_scripts.md ) - Generate the generated portion of the authelia-scripts command
2022-10-22 11:19:32 +00:00
* [authelia-gen code server ](authelia-gen_code_server.md ) - Generate the Authelia server files
2022-06-15 07:51:47 +00:00