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

auth0 rules update

Update a rule.

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

To update non-interactively, supply the rule id and other information through the flags.

Usage

auth0 rules update [flags]

Examples

  auth0 rules update <id>
  auth0 rules update <rule-id> --enabled true
  auth0 rules update <rule-id> --enabled true --name "My Updated Rule"
  auth0 rules update <rule-id> --enabled true --name "My Updated Rule" --script "$(cat path/to/script.js)"
  auth0 rules update <rule-id> -e true -n "My Updated Rule" -s "$(cat path/to/script.js)" --json
  echo "{\"id\":\"rul_ks3dUazcU3b6PqkH\",\"name\":\"piping-name\"}" | auth0 rules update

Flags

  -e, --enabled         Enable (or disable) a rule. (default true)
      --force           Skip confirmation.
      --json            Output in json format.
  -n, --name string     Name of the rule.
  -s, --script string   Script contents for the rule.

Inherited Flags

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