1.0.2 • Published 8 months ago

credenv v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

credenv

Run a command with credential environment variables loaded from a file.

Usage

Install credenv globally.

npm install --global credenv

Make 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-identity

The 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.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago