Quickstart
Start using the Vault from a new project or from an existing .env file.
Open the Vault UI:
fatima vault
If you are starting fresh
- Initialize the Vault with a password.
- Add secrets to the
developmentenvironment. - Generate a user key scoped to
development. - Store the user key outside the Vault file.
- Load it through the
fatima-vaultprovider.
{
"providers": {
"development": [
{ "provider": "file", "file": ".env" },
{ "provider": "fatima-vault", "key": "{env:FATIMA_USER_KEY}" }
]
}
}
If you are coming from .env
Use the Vault UI import command to import an existing .env file into the selected environment. In the command palette, choose Import .env file or press i.
After import, generate a user key and update your Fatima provider chain as shown above. The .env file can then keep only non-secret runtime selectors such as NODE_ENV and FATIMA_USER_KEY.
Default location
The default Vault file is:
.fatima/vault.json
Use storePath or store-path in provider/API options only when your project needs a custom location.