A fast, secure CLI tool that fetches secrets from AWS Secrets Manager and saves them as .env, JSON, YAML, or CSV — with 0600 file permissions out of the box.
Built in Rust for speed and safety. No runtime, no dependencies, single binary.
Write secrets as .env, JSON, YAML, or CSV. Use --output stdout to pipe into other tools.
Output files are created with 0600 permissions. Path traversal attacks are rejected before any write.
Combine keys from multiple secrets into one output file with --merge. Last-write-wins on duplicate keys.
Generate tab completions for bash, zsh, and fish with sm2env completions <shell>.
Set default region, profile, and format in ~/.sm2env to avoid repeating flags on every command.
Extract only the keys you need with --keys, or prepend a namespace to all output keys with --prefix.
Free forever
File permissions
Output formats
Single binary
Available for macOS and Linux — no account, no sign-up, no license key.
Or download the tarball directly