Command

nylas agent rule update

Update a rule

Written by Qasim Muhammad Staff SRE

What does nylas agent rule update do?

The nylas agent rule update command updates a rule. It is part of the Agent Accounts commands, which create and manage Nylas-managed agent accounts, policies, and rules.

Usage

nylas agent rule update

Flags

FlagDescription
--action stringArrayReplace actions with type or type=value entries (repeatable)
--condition stringArrayReplace conditions with field,operator,value entries (repeatable). For in_list, pass field,in_list,list-id-1,list-id-2
--data stringInline JSON request body
--data-file stringPath to a JSON request body file
--description stringUpdated rule description
--disabledSet the rule to disabled
--enabledSet the rule to enabled
--match-operator stringUpdated match operator
--name stringUpdated rule name
--priority intUpdated rule priority
--trigger stringUpdated rule trigger (inbound or outbound)
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations

Examples

The nylas agent rule update command updates a rule.

JSON output for scripting

nylas agent rule update --json

Troubleshooting

Command not found or fails

Run `nylas auth config` and `nylas auth login` to authenticate first.

Recommended guides

Run nylas agent rule update --help for full help output.