|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +parent: auth0 forms |
| 4 | +has_toc: false |
| 5 | +--- |
| 6 | +# auth0 forms create |
| 7 | + |
| 8 | +Create a new form. |
| 9 | + |
| 10 | +Interactive behavior: `auth0 forms create` asks only for the name and creates a minimal scaffold; it does not open an editor. You can then refine the form in the dashboard builder. |
| 11 | + |
| 12 | +Pass `--edit` to open an editor and author the form graph before it is created, or supply the whole body via `--file` (or piped stdin) with optional `--name` and `--language-*` overrides. Run `auth0 forms create --example > form.json` to generate an accepted file payload. |
| 13 | + |
| 14 | +## Usage |
| 15 | +``` |
| 16 | +auth0 forms create [flags] |
| 17 | +``` |
| 18 | + |
| 19 | +## Examples |
| 20 | + |
| 21 | +``` |
| 22 | + auth0 forms create |
| 23 | + auth0 forms create --name "My Form" |
| 24 | + auth0 forms create --name "My Form" --edit |
| 25 | + auth0 forms create --example > form.json |
| 26 | + auth0 forms create --file ./form.json |
| 27 | + auth0 forms create --file ./form.json --name "My Form" --language-primary en |
| 28 | + cat form.json | auth0 forms create -f - |
| 29 | +``` |
| 30 | + |
| 31 | + |
| 32 | +## Flags |
| 33 | + |
| 34 | +``` |
| 35 | + --edit Open an editor to author the form graph after entering the name. |
| 36 | + --example Print an example form JSON body and exit. |
| 37 | + -f, --file string Path to a JSON file with the form body. Use '-' to read from stdin. |
| 38 | + --json Output in json format. |
| 39 | + --json-compact Output in compact json format. |
| 40 | + --language-default string Default language of the Form (e.g. en). |
| 41 | + --language-primary string Primary language of the Form (e.g. en). |
| 42 | + --name string Name of the Form. |
| 43 | +``` |
| 44 | + |
| 45 | + |
| 46 | +## Inherited Flags |
| 47 | + |
| 48 | +``` |
| 49 | + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. |
| 50 | + --debug Enable debug mode. |
| 51 | + --no-color Disable colors. |
| 52 | + --no-input Disable interactivity. |
| 53 | + --tenant string Specific tenant to use. |
| 54 | +``` |
| 55 | + |
| 56 | + |
| 57 | +## Related Commands |
| 58 | + |
| 59 | +- [auth0 forms create](auth0_forms_create.md) - Create a new form |
| 60 | +- [auth0 forms delete](auth0_forms_delete.md) - Delete a form |
| 61 | +- [auth0 forms export](auth0_forms_export.md) - Export a form |
| 62 | +- [auth0 forms import](auth0_forms_import.md) - Import a form |
| 63 | +- [auth0 forms list](auth0_forms_list.md) - List your forms |
| 64 | +- [auth0 forms open](auth0_forms_open.md) - Open a form in the Auth0 Dashboard |
| 65 | +- [auth0 forms show](auth0_forms_show.md) - Show a form |
| 66 | +- [auth0 forms update](auth0_forms_update.md) - Update a form |
| 67 | + |
| 68 | + |
0 commit comments