Command

nylas config set

Set a configuration value.

Written by Qasim Muhammad Staff SRE

What does nylas config set do?

The nylas config set command updates one CLI setting using dot notation, such as output.format, default_grant, or gpg.auto_sign. Use it to change behavior without editing the config file manually.

Usage

nylas config set <key> <value> [flags]

Flags

FlagDescription
--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 config set command updates one CLI setting using dot notation, such as output.format, default_grant, or gpg.auto_sign.

Set the default grant ID

nylas config set default_grant grant_abc123

Set the output format

nylas config set output.format json

Enable automatic GPG signing

nylas config set gpg.auto_sign true

Example output

✓ Set default_grant = grant_abc123

Troubleshooting

Setting does not take effect

Run `nylas config path` to confirm which config file is active, then re-run the command with the expected key.

Recommended guides

Run nylas config set --help for full help output.