First Steps with Kānuka
After installing Kānuka, you can check that
it is available by running the kanuka command:
$ kanukaWelcome to Kānuka! Run 'kanuka --help' to see available commands.Run kanuka --help to see a list of all the available commands.
Quick Start
Section titled “Quick Start”Kānuka provides secrets management for securely sharing environment variables and API keys across your team.
1. Initialize Your First Project
Section titled “1. Initialize Your First Project”# Navigate to your projectcd my-project
# Initialize Kānukakanuka secrets initIf this is your first time using Kānuka, you’ll be prompted to set up your identity (email, name, and device name). This only happens once.
2. Encrypt Your Secrets
Section titled “2. Encrypt Your Secrets”# Encrypt all .env fileskanuka secrets encryptThis creates encrypted .kanuka files that are safe to commit to version control.
3. Share with Your Team
Section titled “3. Share with Your Team”Commit the .kanuka directory and encrypted files:
git add .kanuka/ *.kanukagit commit -m "Add encrypted secrets"git push4. Team Members Decrypt
Section titled “4. Team Members Decrypt”When a team member clones the repo and has been registered, they can decrypt:
kanuka secrets decryptThe Kānuka Workflow
Section titled “The Kānuka Workflow”┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐│ kanuka secrets │ │ kanuka secrets │ │ git push ││ init │ ──▶ │ encrypt │ ──▶ │ │└─────────────────┘ └─────────────────┘ └─────────────────┘ │ │ │ ▼ ▼ ▼ Sets up identity .env → .env.kanuka Share with team Creates project Safe to commit
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐│ git clone │ │ kanuka secrets │ │ kanuka secrets ││ git pull │ ──▶ │ create │ ──▶ │ decrypt │└─────────────────┘ └─────────────────┘ └─────────────────┘ │ │ │ ▼ ▼ ▼ Get latest secrets Create your keys .env.kanuka → .env (if new to project) Access your secretsNext Steps
Section titled “Next Steps”- User Setup - Configure your identity
- Project Initialization - Initialize a new project
- Encryption - Encrypt your secrets
- Registration - Add team members
Getting Help
Section titled “Getting Help”- Run
kanuka --helpto see all available commands - Use
kanuka <command> --helpfor specific command help - Check the CLI reference for comprehensive documentation
- See the FAQ for common questions