fnox exec
- Usage:
fnox exec [--replace] [COMMAND]… - Aliases:
x
Execute a command with secrets as environment variables
Arguments
[COMMAND]…— Command to run
Flags
--replace— Replace the fnox process with the command so it keeps the same PID and receives signals directly. Rejected when the command's environment would carry an as_file secret, or when the profile configures credential leases, since fnox must clean those up after the command exits. Unix only-h --help— Print help
Examples
Put fnox options before --. Arguments after -- belong to the child command. To expand an injected variable in a shell expression, defer expansion to a child shell with single quotes.
sh
fnox exec -- npm start
fnox exec --profile production --if-missing error -- ./deploy.sh
fnox exec -- sh -c 'test -n "$DATABASE_URL"'Related
- How fnox works
- Profiles
- Global options, including profile selection and non-interactive mode.