mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
- Alias @infisical/quic → @hanzo/quic and @infisical/pg-view-generator → @hanzo/pg-view-generator in package.json using npm alias syntax (resolves same upstream packages) - Update gateway.ts and sanitized-schema.ts to import from @hanzo/* names - Rename helm-charts/kms-standalone/templates/infisical.yaml → deployment.yaml - Update Dockerfiles (backend, standalone, fips) with hanzo branding - Makefile: use 'docker compose' (v2) and docker-compose.prod.yml - Update docs to reference kms.hanzo.ai and hanzo tooling - .gitignore: add common dev artifacts
141 lines
3.6 KiB
Plaintext
141 lines
3.6 KiB
Plaintext
---
|
|
title: 'Install'
|
|
description: "KMS's CLI is one of the best ways to manage environments and secrets. Install it here"
|
|
---
|
|
|
|
The KMS CLI is a powerful command line tool that can be used to retrieve, modify, export and inject secrets into any process or application as environment variables.
|
|
You can use it across various environments, whether it's local development, CI/CD, staging, or production.
|
|
|
|
## Installation
|
|
|
|
<Tabs>
|
|
<Tab title="MacOS">
|
|
Use [brew](https://brew.sh/) package manager
|
|
|
|
```bash
|
|
brew install kms/get-cli/kms
|
|
```
|
|
|
|
### Updates
|
|
|
|
```bash
|
|
brew update && brew upgrade kms
|
|
```
|
|
</Tab>
|
|
<Tab title="Windows">
|
|
|
|
<Accordion title="Scoop package manager">
|
|
Use [Scoop](https://scoop.sh/) package manager
|
|
|
|
```bash
|
|
scoop bucket add org https://github.com/KMS/scoop-kms.git
|
|
```
|
|
|
|
```bash
|
|
scoop install kms
|
|
```
|
|
|
|
### Updates
|
|
|
|
```bash
|
|
scoop update kms
|
|
```
|
|
</Accordion>
|
|
|
|
<Accordion title="Winget package manager">
|
|
Use [Winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/) package manager
|
|
|
|
```bash
|
|
winget install kms
|
|
```
|
|
</Accordion>
|
|
|
|
</Tab>
|
|
<Tab title="NPM">
|
|
Use [NPM](https://www.npmjs.com/) package manager
|
|
|
|
```bash
|
|
npm install -g @ghcr.io/hanzoai/kms-cli
|
|
```
|
|
|
|
### Updates
|
|
|
|
```bash
|
|
npm update -g @ghcr.io/hanzoai/kms-cli
|
|
```
|
|
</Tab>
|
|
<Tab title="Alpine">
|
|
Install prerequisite
|
|
```bash
|
|
apk add --no-cache bash sudo wget
|
|
```
|
|
|
|
Add KMS repository
|
|
```bash
|
|
wget -qO- 'https://artifacts-cli.kms.hanzo.ai/setup.apk.sh' | sudo sh
|
|
```
|
|
|
|
Then install CLI
|
|
```bash
|
|
apk update && sudo apk add kms
|
|
```
|
|
###
|
|
<Tip>
|
|
If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/hanzoai/kms/releases)
|
|
</Tip>
|
|
</Tab>
|
|
<Tab title="RedHat/CentOs/Amazon">
|
|
Add KMS repository
|
|
```bash
|
|
curl -1sLf \
|
|
'https://artifacts-cli.kms.hanzo.ai/setup.rpm.sh' \
|
|
| sudo -E bash
|
|
```
|
|
|
|
Then install CLI
|
|
```bash
|
|
sudo yum install kms
|
|
```
|
|
###
|
|
<Tip>
|
|
If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/hanzoai/kms/releases)
|
|
</Tip>
|
|
</Tab>
|
|
<Tab title="Debian/Ubuntu">
|
|
|
|
Add KMS repository
|
|
|
|
```bash
|
|
curl -1sLf \
|
|
'https://artifacts-cli.kms.hanzo.ai/setup.deb.sh' \
|
|
| sudo -E bash
|
|
```
|
|
|
|
Then install CLI
|
|
```bash
|
|
sudo apt-get update && sudo apt-get install -y kms
|
|
```
|
|
###
|
|
<Tip>
|
|
If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/hanzoai/kms/releases)
|
|
</Tip>
|
|
</Tab>
|
|
<Tab title="Arch Linux">
|
|
Use the `yay` package manager to install from the [Arch User Repository](https://aur.archlinux.org/packages/kms-bin)
|
|
|
|
```bash
|
|
yay -S kms-bin
|
|
```
|
|
|
|
###
|
|
<Tip>
|
|
If you are installing the CLI in production environments, we highly recommend to set the version of the CLI to a specific version. This will help keep your CLI version consistent across reinstalls. [View versions](https://github.com/hanzoai/kms/releases)
|
|
</Tip>
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## Quick Usage Guide
|
|
<Card color="#00A300" href="./usage">
|
|
Now that you have the CLI installed on your system, follow this guide to make the best use of it
|
|
</Card>
|