Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 actions modules create

Create a new action module.

To create interactively, use auth0 actions modules create with no flags.

To create non-interactively, supply the name and code (and optionally dependencies, secrets, and publish) through flags.

Usage

auth0 actions modules create [flags]

Examples

  auth0 actions modules create
  auth0 actions modules create --name mymodule --code "$(cat path/to/module.js)"
  auth0 actions modules create --name mymodule --code "$(cat path/to/module.js)" --publish
  auth0 actions modules create --name mymodule --code "$(cat path/to/module.js)" --dependency "lodash=4.0.0" --secret "API_KEY=value"
  auth0 actions modules create --name mymodule --code "$(cat path/to/module.js)" --api-version v1
  auth0 actions modules create -n mymodule -c "$(cat path/to/module.js)" -d "lodash=4.0.0" -s "API_KEY=value" --json

Flags

      --api-version string          API version of the action module.
  -c, --code string                 Code content of the action module.
  -d, --dependency stringToString   Third party npm module, and its version, that the action module depends on. (default [])
      --json                        Output in json format.
      --json-compact                Output in compact json format.
  -n, --name string                 Name of the action module. Must start with a lowercase letter or digit and contain only lowercase letters, digits, underscores, and hyphens.
      --publish                     Publish the module's draft as a new immutable version once the create or update succeeds.
  -s, --secret stringToString       Secrets to be used in the action module. (default [])

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.