No ek login
required when using an API token.
We recommend using the CLI using
ek login
instead of an API token. But if your environment does not support a browser, you can use an API token. Please make sure that your environment is secure and that the token is not exposed to the public.Generate an API token
- Go to your project in the Enkryptify dashboard.
- Open the Tokens section and create a new token.
- Copy the token and store it securely.
Provide the token to the CLI
You can provide the token either by exporting it once in your shell session or inline per command. The CLI reads the token from theENKRYPTIFY_TOKEN
environment variable.
- Export once
- Per command
Use in Docker
Install the CLI during build and pass the token securely at runtime.- Dockerfile
- Runtime (docker run)
- docker-compose.yml