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

auth0 rules update

DEPRECATED! Rules are deprecated and will be removed in the near future. Users should migrate all rules to actions. See https://auth0.com/docs/customize/actions/migrate/migrate-from-rules-to-actions for more details.

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=false --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.