1.0.2 • Published 2 years ago
credenv v1.0.2
credenv
Run a command with credential environment variables loaded from a file.
Usage
Install credenv globally.
npm install --global credenvMake sure you add .creds* files to your .gitignore file.
# Filename: `.gitignore`
.creds*Create a credentials environment file for a command (eg. aws).
# Filename: `.creds-aws`
AWS_ACCESS_KEY_ID="..."
AWS_SECRET_ACCESS_KEY="..."
AWS_DEFAULT_REGION="..."Run the command command with the credenv wrapper.
credenv aws sts get-caller-identity
# Alternatively, use the `cv` alias.
cv aws sts get-caller-identityThe credenv wrapper will load environment variables from a file named .creds-aws in the current directory or a parent directory, and then execute the command.