v0.2.7 - Secure API Key Storage
New Features
Secure API Key Storage (Optional Feature)
Store your Linear API keys in your operating system's secure credential storage instead of plaintext config files:
- macOS: Keychain
- Windows: Credential Manager
- Linux: Secret Service (requires D-Bus and a keyring daemon)
Usage
Enable the feature when building:
cargo install linear-cli --features secure-storageStore a key securely:
linear-cli auth login --secureMigrate existing keys from config to keyring:
linear-cli auth migrateCheck storage status:
linear-cli auth statusPriority Order
API keys are resolved in this order:
LINEAR_API_KEYenvironment variable- OS keyring (if
secure-storagefeature enabled) - Config file (~/.config/linear-cli/config.toml)
Notes
- Feature is opt-in to avoid adding keyring dependencies for users who don't need it
- Graceful fallback to config file if keyring is unavailable
- Profile-aware: each workspace has its own keyring entry
auth logoutremoves keys from both keyring and config