# @salefronts/cli

This is a command-line interface (CLI) tool for generating various types of keys, secrets, UUIDs, and more. It also includes functionality for sealing and unsealing Kubernetes secrets.

## Installation

To install the CLI globally, run the following command:

```bash
npm install -g @salefronts/cli
```

## Commands

User `sf <command>` to execute the corresponding commands.
To get the list of command use this command line:

```bash
sf help
```

Every command supports `--help`, `-h` or `help` (e.g. `sf acp --help`, `sf help acp`); the command does not run.

`sf acp` passes the message straight to git without a shell, but your shell still parses the arguments first. To avoid that entirely, copy the message and run `sf acp -p` (reads the clipboard and asks to confirm), or run `sf acp` and paste the message, then press Ctrl-D. A heredoc also works:

```bash
sf acp - <<'EOF'
feat: keep "quotes", 'apostrophes' and `backticks`
EOF
```

Random generators accept an optional length:

```bash
sf secret 48
sf key 24
sf hex 64
```

## Publishing

- Increase the version inside the package.json
- Generate an access token in npm: check bypass 2FA

```bash
export NPM_TOKEN=<token here> && npm stage publish --access public
```
