bdy variable inject
$bdy variable inject|exec [options] <command...>
Run a command with the variables of an environment injected into its process, without storing them on disk. Encrypted values need a personal access token with the MASKED_VARIABLE_VALUE_DECRYPTED scope, the manage permission on the environment and decrypted values allowed on it. Required scopes: VARIABLE_READ, ENVIRONMENT_READ, MASKED_VARIABLE_VALUE_DECRYPTED
Examples
Run a command with every VAR variable of an environment
bdy var inject --environment staging -- npm run migrate$Inject only the chosen variables
bdy var exec --environment staging --var DB_URL --var API_TOKEN -- ./deploy.sh$Write an SSH key to a file for the time of the command
bdy var inject --environment staging --var-file DEPLOY_KEY:./deploy_key -- ssh -i ./deploy_key user@host$Give an interactive program the terminal (no output masking)
bdy var run --environment staging --no-masking -- psql$Use the workspace environment even inside a linked project
bdy var inject --environment staging --scope WORKSPACE -- npm run migrate$