Command

nylas auth migrate

Migrate from v2 to v3.

Written by Qasim Muhammad Staff SRE

What does nylas auth migrate do?

The nylas auth migrate command upgrades your CLI authentication from Nylas API v2 to v3. It converts stored credentials and grant formats so existing scripts and automation continue working after the migration.

Usage

nylas auth migrate

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 auth migrate command upgrades your CLI authentication from Nylas API v2 to v3.

Run migration

nylas auth migrate

Check migration status after

nylas auth migrate && nylas auth status

Example output

Migrating credentials from encrypted file to system keyring...

✓ API key migrated
✓ 3 grants migrated
✓ Encrypted file store removed

Credentials now stored in macOS Keychain

Troubleshooting

No v2 credentials found

This means you're already on v3, or no accounts were connected under v2. No action needed.

Migration fails with permission error

Check that your API key has v3 access. Contact Nylas support if your account hasn't been upgraded.

Recommended guides

Run nylas auth migrate --help for full help output.