Starting in version 27.18.0, Netlify CLI stores authentication tokens encrypted at rest in your operating system’s native secure keychain rather than in plain text on disk. This update protects your account credentials across macOS, Windows, and supported Linux distributions. Previously, Netlify CLI saved login tokens in plain text in a local configuration file (such as ~/Library/Preferences/netlify/config.json on macOS). Because these tokens grant full access to manage your Netlify account and projects, plain text storage left them exposed to any malicious script or local process with disk read access. Storing tokens directly in your device’s secure credential store mitigates that risk and limits the blast radius of local machine breaches or prompt injection attacks. How it works Netlify CLI now integrates directly with platform-native credential managers:
Continue reading...
- macOS: Keychain
- Windows: Windows Credential Manager
- Linux: Secret Service API (standard on GNOME and KDE, and configurable elsewhere)
- Multiple global CLI installs: If you have multiple global installs of Netlify CLI across different Node managers (such as nvm, pnpm, or Homebrew), update all of them so an older version doesn’t revert your credentials back to plain text storage.
- Local Netlify MCP: If you use the local Netlify Model Context Protocol (MCP) server, ensure you have @netlify/mcp version 1.22.1 or later to support keychain-stored credentials.
Continue reading...