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.
Related Commands
- auth0 rules create - Create a new rule
- auth0 rules delete - Delete a rule
- auth0 rules disable - Disable a rule
- auth0 rules enable - Enable a rule
- auth0 rules list - List your rules
- auth0 rules show - Show a rule
- auth0 rules update - Update a rule