# @block65/pommel

> Store and access sensitive environment variables using your operating system's secure keystore.

Latest version **5.0.1** (published 2023-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @block65/pommel
pnpm add @block65/pommel
yarn add @block65/pommel
bun add @block65/pommel
```

Provides the command `pommel`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2023-04-12 |
| First published | 2020-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=16 |
| Dependencies | 6 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | maxholman, block65-bot |
| Keywords | secret, keystore, environment, variables, env, vault |

## Links

- npm: https://www.npmjs.com/package/@block65/pommel
- Repository: https://github.com/block65/pommel
- Homepage: https://github.com/block65/pommel#readme
- Issues: https://github.com/block65/pommel/issues
- npm.io page: https://npm.io/package/@block65/pommel

## Dependencies (6)

- [sade](https://npm.io/package/sade.md) ^1.8.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.3
- [keytar](https://npm.io/package/keytar.md) ^7.9.0
- [inquirer](https://npm.io/package/inquirer.md) ^9.1.5
- [colorette](https://npm.io/package/colorette.md) ^2.0.19
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^9.1.0

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 5.0.1 (latest) — 2023-04-12
- 5.0.0 — 2023-04-12
- 4.0.0 — 2022-09-07
- 3.1.4 — 2022-04-09
- 3.1.2 — 2022-04-04
- 3.0.9 — 2021-10-12
- 3.0.8 — 2021-10-05
- 3.0.7 — 2021-06-01
- 3.0.6 — 2021-05-11
- 3.0.5 — 2021-05-11
- 3.0.4 — 2021-05-11
- 3.0.3 — 2021-05-11
- 3.0.2 — 2021-05-11
- 3.0.1 — 2021-05-11
- 2.1.4 — 2021-01-16
- … 6 more at https://npm.io/package/@block65/pommel/versions

## README

# Pommel

A tool to securely store and access sensitive environment variables in
a development environment. Pommel stores these values in your operating system's
secure keystore.

Sensitive environment variables are only populated when you intentionally
invoke `pommel exec` and they are therefore safely hidden away from your
everyday command line usage.

Inspired by [aws-vault](https://github.com/99designs/aws-vault)

## Installing

```shell script
yarn global add @block65/pommel
```

```shell script
npm install --global @block65/pommel
```

## Quick start

### Setting values

Set a value in the profile called `prod`

```shell script
$ pommel set prod SOME_SECRET_ENV_VAR QGJsb2NrNjUvcG9tbWVs
```

### Executing commands

Execute the command `/usr/bin/env` in the profile called `prod`

```shell script
$ pommel exec prod -- /usr/bin/env
TERM=xterm
USER=user
DISPLAY=:0
...
SOME_SECRET_ENV_VAR=QGJsb2NrNjUvcG9tbWVs
```

### Chaining commands

Execute the command `terraform apply` with profile called `prod` and then, `aws-vault` with profile `prod`

```shell script
$ pommel exec prod -- aws-vault exec prod -- terraform apply
```

## Usage

```
Usage: pommel [options] [command]

Options:
  -V, --version                            output the version number
  -h, --help                               display help for command

Commands:
  exec <profile> <--> <command> [args...]  execute a specific command within the profile environment
  set <profile> [key] [value]              Set environment variable [key] with value [value] to the
                                           profile
  unset <profile> [key]                    Unset environment variable <key>
  dump <profile>                           dump the profile environment
  slurp <profile>                          slurp environment variables from STDIN
  help [command]                           display help for command
```

---
_Source: https://npm.io/package/@block65/pommel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
