@fabyosk/skr
v1.0.3
Published
A CLI tool to import and export env files to and from gopass
Readme
🔐 SKR
Secure Keeper - A CLI tool to effortlessly sync your
.envfiles with gopass.
SKR simplifies the management of local environment variables by leveraging the power of gopass. Whether you need to securely backup your local configuration or pull shared secrets for a team project, skr makes it a one-command process.
✨ Features
- Import (
i): Scan your local directory for.envfiles and securely upload them to agopassworkspace. - Export (
e): Fetch configuration from anygopassworkspace and save it as a local.envfile. - Interactive CLI: Features a user-friendly interactive prompt for selecting files and workspaces.
- Automated: Built on top of
gopass fscopyandgopass catfor reliable secret handling.
🚀 Prerequisites
Before using skr, ensure you have gopass installed and configured on your machine.
You will also need Node.js (or Bun/Deno) to run the tool.
📦 Installation
You can run skr directly using npx or bunx, or install it globally.
Using Bun (Recommended)
bun add -g @fabyosk/skrUsing npm
npm install -g @fabyosk/skr🛠 Usage
Simply run skr to see the help menu, or use one of the commands below.
Import to gopass
Push a local .env file to your password store.
skr import
# or alias
skr iThe workspace will prompt you to select an existing .env file and a target gopass path.
Export from gopass
Pull secrets from your password store into a local file.
skr export
# or alias
skr eYou will be asked to select a gopass workspace and specify the output filename (default: .env).
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is licensed under the MIT License.
