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

auth0 actions update

Update an action.

To update interactively, use auth0 actions update with no arguments.

To update non-interactively, supply the action id, name, code, secrets and dependencies through the flags.

Usage

auth0 actions update [flags]

Examples

  auth0 actions update <action-id> 
  auth0 actions update <action-id> --name myaction
  auth0 actions update <action-id> --name myaction --code "$(cat path/to/code.js)"
  auth0 actions update <action-id> --name myaction --code "$(cat path/to/code.js)" --dependency "lodash=4.0.0"
  auth0 actions update <action-id> --name myaction --code "$(cat path/to/code.js)" --dependency "lodash=4.0.0" --secret "SECRET=value"
  auth0 actions update <action-id> --name myaction --code "$(cat path/to/code.js)" --dependency "lodash=4.0.0" --dependency "uuid=9.0.0" --secret "API_KEY=value" --secret "SECRET=value"
  auth0 actions update <action-id> -n myaction -c "$(cat path/to/code.js)" -d "lodash=4.0.0" -d "uuid=9.0.0" -s "API_KEY=value" -s "SECRET=value" --json

Flags

  -c, --code string                 Code content for the action.
  -d, --dependency stringToString   Third party npm module, and its version, that the action depends on. (default [])
      --force                       Skip confirmation.
      --json                        Output in json format.
  -n, --name string                 Name of the action.
  -s, --secret stringToString       Secrets to be used in the action. (default [])

Inherited Flags

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