Skip to content

Project Initialisation

To use Kānuka on your project, it needs to be initialised. Provided Kānuka hasn’t already been initialised, it will automatically create the necessary configuration files for your repository. You don’t need any .env files (secrets) to get started, as Kānuka can work, even on an empty folder.

To initialise Kānuka on a new project, run the following commands:

Terminal window
# Create the directory for your new project
mkdir my_new_project
# Navigate to the project
cd my_new_project
# Initialise Kānuka
kanuka secrets init

That’s it! If you want to initialise Kānuka on an existing project, just navigate to the root of that project and run:

Terminal window
kanuka secrets init

To learn more about kanuka secrets init, see the project structure concepts and the command reference.

Or, continue reading to learn how to encrypt secrets using Kānuka.