Nysm (Now You See Me)
Manage your secrets via the command line
Nysm is a command line utility designed to make interacting with secrets management providers simple and intuitive. Whether you need to quickly view a secret, update configuration values, or manage your secrets workflow, Nysm provides a streamlined interface with support for multiple data formats and your preferred editor.
Features
- List all secrets in your account with names and descriptions
- View secret values in multiple formats (JSON, YAML, plain text)
- Edit secrets using your preferred editor with format conversion
- Create new secrets interactively with optional descriptions
- Delete secrets when no longer needed
- Multi-format support for seamless workflow integration
- Syntax highlighting and pagination for better readability
Installation
Usage
List secrets:
Show a specific secret:
Edit an existing secret:
Create a new secret:
Delete a secret:
Advanced Usage
Format Options
Nysm supports multiple data formats for viewing and editing secrets:
json- JSON format (default for stored secrets)yaml- YAML format (default for editing)text- Plain text format
You can specify different formats for storage and editing:
# View a JSON secret as YAML (default behavior)
# View a secret as JSON
# Edit a secret, converting from JSON storage to YAML for editing
# Create a secret and store it as JSON (converted from YAML editing)
Region Selection
Specify a different region using the -r or --region flag:
Editor Integration
When creating or editing secrets, Nysm will open your preferred editor:
- Uses the
EDITORenvironment variable (defaults tovim) - Temporary files are created with appropriate extensions for syntax highlighting
- Changes are only saved if the file content is modified
Configuration
AWS Credentials
Nysm uses standard AWS credential resolution:
- Environment variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY) - AWS credentials file (
~/.aws/credentials) - IAM roles (when running on EC2)
- AWS SSO
Required Permissions
Your AWS credentials need the following IAM permissions:
Examples
Managing Application Configuration
# List all secrets to find your app config
# View current database configuration
# Update database password
# Create new API key secret
Working with Different Formats
# View a plaintext secret (like an SSL certificate)
# Convert YAML configuration to JSON storage