jex init
Initialize a .envault file in the current directory.
Usage
jex init [flags]
Behavior
- Fetches the list of projects you belong to via the API
- If multiple projects exist, shows an interactive selector (arrow keys to navigate, Enter to confirm)
- Fetches the list of environments for the selected project
- Shows an interactive selector for the default environment
- Writes
.envaultto the current directory:
project = "proj_abc123"
defaultEnv = "dev"
apiURL = "https://jex.yourcompany.com"
- Prints:
Initialized. .envault created.
The .envault file
.envault contains no secrets — only:
project: the project IDdefaultEnv: the environment used when--envis not specifiedapiURL: the API base URL
You should commit .envault to version control. It is safe to do so.
Flags
| Flag | Description |
|---|---|
--api-url | Override the API URL stored in .envault |
Finding .envault
All Jex commands walk up the directory tree to find .envault, the same way
git finds .git. You can run jex secrets pull from any subdirectory of
your project.
See also
jex secrets pull— pull secrets after initializingjex envs— list available environments