auth0 forms import
Import a form from --data, given as inline JSON, a file (@form.json), or piped stdin. Without --id a new form is created; with --id the existing form is replaced.
Both a flat form graph and the Dashboard envelope (version, form, flows, connections) are accepted. For an envelope, the bundled flows are created and each #CONN-N# connection placeholder is mapped to an existing vault connection, either interactively or with --connection.
Usage
auth0 forms import [flags]
Examples
auth0 forms import --data @form.json
auth0 forms import --data @form.json --id <form-id>
auth0 forms import --data @form.json --connection '#CONN-1#=ac_123'
auth0 forms export <form-id> | auth0 forms import
Flags
--connection stringToString Map an exported connection placeholder to an existing vault connection ID, e.g. --connection '#CONN-1#=ac_123'. Repeatable. (default [])
--data string JSON payload for the operation, as a JSON string or file path (@file.json). Can also be piped via stdin.
--id string Id of an existing Form to replace. When omitted, a new form is created.
--json Output in json format.
--json-compact Output in compact json format.
Inherited Flags
--agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Related Commands
- auth0 forms create - Create a new form
- auth0 forms delete - Delete a form
- auth0 forms export - Export a form
- auth0 forms import - Import a form
- auth0 forms list - List your forms
- auth0 forms open - Open a form in the Auth0 Dashboard
- auth0 forms show - Show a form
- auth0 forms update - Update a form