Documentation Index
Fetch the complete documentation index at: https://docs.capy.sc/llms.txt
Use this file to discover all available pages before exploring further.
capy run has you covered. It decrypts .env in memory and spawns your command with the plaintext values injected as environment variables. It works with anything that reads env vars - PHP, Elixir, Java, .NET, Deno, Bun, static binaries, shell scripts.
The pattern
- Reads the local
.envfile. - Decrypts every
capy:…snippet using your project key. - Spawns the child process with the decrypted values in its environment.
- Forwards signals (
SIGINT,SIGTERM,SIGHUP) and the child’s exit code.
Examples
In containers
capy run works as the entrypoint of a Docker container as long as the deploy key is available at runtime. See Deploying for how to inject the key.
What’s next
Running your app
Signals, exit codes, and env precedence in detail.