infisical run [options] -- [your application start command]

# Example
infisical run [options] -- npm run dev

Description

Inject secrets from Infisical into your application process.

Subcommands & flags

Use this command to inject secrets into your applications process

$ infisical run -- <your application command>

# Example
$ infisical run -- npm run dev

Environment variables

Flags

Automatically reload command when secrets change

To automatically reload your command when secrets change, use the --watch flag.

infisical run --watch -- npm run dev

This will watch for changes in your secrets and automatically restart your command with the new secrets. When your command restarts, it will have the new environment variables injeceted into it.

Please note that this feature is intended for development purposes. It is not recommended to use this in production environments. Generally it’s not recommended to automatically reload your application in production when remote changes are made.

Was this page helpful?