This tool for maintains AES-256 encrypted file with accessCodes to oidc.plus4u.net.

[Changelog](doc/CHANGELOG.md)

# How to install ?

`npm install -g oidc-plus4u-vault`

# How to use ?

![Help](doc/help.png)

By default, the vault password is requested interactively. For non-interactive use in CI environments, use a password file:

```bash
printf '%s' "$VAULT_PASSWORD" > vault.password
chmod 600 vault.password
oidc-plus4u-vault ls --vault-password-file vault.password
rm -f vault.password
```

The password file must contain only the vault password without quotes. A single trailing line ending is ignored. The `--vault-password-file` option is supported by the `add`, `ls`, `rm`, and `import` commands.

Example for a TeamCity password parameter named `env.VAULT_PASSWORD`:

```bash
VAULT_PASSWORD_FILE="$(mktemp)"
trap 'rm -f "$VAULT_PASSWORD_FILE"' EXIT
printf '%s' "%env.VAULT_PASSWORD%" > "$VAULT_PASSWORD_FILE"
chmod 600 "$VAULT_PASSWORD_FILE"

oidc-plus4u-vault ls --vault-password-file "$VAULT_PASSWORD_FILE"
```

# How to develop ?

Publish new version
1. `npm pack`
2. `npm publish --registry https://registry.npmjs.org/`


