Authentication
These errors occur when the CLI cannot verify your identity.Not authenticated
Not authenticated
Error:
Not authenticated.No valid credentials were found on this machine. This usually means you haven’t logged in yet or your credentials were cleared.Session expired or invalid credentials
Session expired or invalid credentials
Error: If the problem persists, force a full re-authentication:
Authentication failed.Your session has expired or your stored credentials are no longer valid. Re-authenticate to get a fresh token.API returns 401 Unauthorized
API returns 401 Unauthorized
Where are credentials stored?
The CLI stores your authentication token in the operating system’s credential store:- macOS — Keychain
- Linux — Secret Service (GNOME Keyring) or KWallet
- Windows — Credential Manager
Headless environments
In environments without a credential store (CI runners, containers, minimal servers), set theEK_TOKEN environment variable instead. The CLI reads this variable automatically and skips the credential store.
For more details on the login flow, see the login command reference.
Configuration
These errors occur when the CLI cannot find or read your project configuration.No project configured for this directory
No project configured for this directory
Error:
No project configured for this directory.No Enkryptify configuration was found for the current directory or any parent directory. Link your project first:Configuration file is corrupted or contains invalid JSON
Configuration file is corrupted or contains invalid JSON
Error:
Configuration file is corrupted. or Configuration file contains invalid JSON.The configuration file could not be parsed. Delete it and re-configure:Configuration is incomplete
Configuration is incomplete
Error:
Your project configuration is incomplete.The configuration file is missing required fields (workspace, project or environment). Re-run the setup wizard to fill them in:Permission denied
Permission denied
Error:
Cannot access the configuration file.The CLI cannot read or write the configuration directory.- macOS / Linux
- Windows
Config file location
The configuration is stored at~/.enkryptify/config.json. Each entry maps a directory path to a workspace, project and environment:
configure command reference.
Secrets
These errors occur when creating or updating secrets.Invalid secret name
Invalid secret name
Error:
Invalid secret name.Secret names can only contain:- Letters:
A-Z,a-z - Numbers:
0-9 - Underscore:
_ - Hyphen:
-
Empty secret value
Empty secret value
Error:
Secret value cannot be empty.Provide a non-empty value. Use quotes for values that contain spaces or special characters:secret command reference.
Network
These errors occur when the CLI cannot reach the Enkryptify API.Could not connect to the Enkryptify API
Could not connect to the Enkryptify API
Error:
Could not connect to the Enkryptify API.The API server is unreachable. Common causes:- No internet connection — verify your network is working
- Firewall or proxy — ensure
api.enkryptify.com(port 443) is not blocked - VPN — some VPNs block outbound traffic; try disconnecting temporarily
- Self-hosted — verify the
API_BASE_URLenvironment variable points to the correct server
--offline flag to run with previously cached secrets:--offline only works if you have run the command at least once while online so that secrets are cached.