# cloudkeys

> Cloudkeys CLI Tool

Latest version **1.1.5** (published 2023-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install cloudkeys
pnpm add cloudkeys
yarn add cloudkeys
bun add cloudkeys
```

Provides the command `cloudkeys`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2023-08-25 |
| First published | 2023-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | stevenc@castroai.com |
| Maintainers | castrostevenyc |

## Links

- npm: https://www.npmjs.com/package/cloudkeys
- npm.io page: https://npm.io/package/cloudkeys

## Dependencies (6)

- [pack](https://npm.io/package/pack.md) ^2.2.0
- [figlet](https://npm.io/package/figlet.md) ^1.6.0
- [commander](https://npm.io/package/commander.md) ^11.0.0
- [@azure/identity](https://npm.io/package/@azure/identity.md) ^3.3.0
- [@azure/keyvault-keys](https://npm.io/package/@azure/keyvault-keys.md) ^4.7.2
- [@azure/keyvault-secrets](https://npm.io/package/@azure/keyvault-secrets.md) ^4.7.0

## Recent versions

- 1.1.5 (latest) — 2023-08-25
- 1.1.3 — 2023-08-25
- 1.1.2 — 2023-08-24
- 1.1.1 — 2023-08-24
- 1.1.0 — 2023-08-24
- 1.0.9 — 2023-08-24
- 1.0.7 — 2023-08-24
- 1.0.6 — 2023-08-24
- 1.0.5 — 2023-08-24
- 1.0.4 — 2023-08-24
- 1.0.3 — 2023-07-20
- 1.0.2 — 2023-07-20

## README

# CloudKeys Documentation

CloudKeys is a powerful npm package that allows you to generate and manage secure cloud access keys. This documentation will guide you through the installation process and show you how to create a script for generating cloud access keys.

## Supported Clouds

- Azure (YES)
- GCP (COMING SOON)
- AWS (COMING SOON)

## Installation

To use CloudKeys in your project, you'll need to install it as a dependency. You can do this using npm or yarn. Open your terminal or command prompt and run the following command:

```bash
npm install cloudkeys
```

or

```bash
yarn add cloudkeys
```

This will download and install the CloudKeys package in your project.

## Generating Cloud Access Keys

Once you have CloudKeys installed, you can create a script in your project that will use CloudKeys to generate cloud access keys. Follow these steps to create the script:

1. Install the Azure CLI

```
brew update && brew install azure-cli
```

2. Run

```bash
az Login
```

## Configuration File

| Key            | Value                               | Type    | description                                                                                                          |
| -------------- | ----------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
| keyVaultUrl    | `https://KEYVAULT.vault.azure.net/` | string  | The URL for the azure keyvault url                                                                                   |
| currentEnvPath | `./.env `                           | string  | The path to where your .env file is located                                                                          |
| newEnvPath     | `./.env `                           | string  | The path where you would like your new env file created. If the same as `currentEnvPath` your file will be replaced. |
| createBackup   | `true`                              | boolean | Recommended it will create a backup of your `currentEnvPath` file                                                    |
| merge          | `true`                              | boolean | if `true` it will merge the keys from the cloud and the current keys.                                                |

3. Create a configuration file in the root of your project with the name `cloudkeys-config.json`

```json
{
  "keyVaultUrl": "https://KEYVAULT.vault.azure.net/",
  "currentEnvPath": "./.env",
  "newEnvPath": "./env",
  "createBackup": true,
  "merge": true
}
```

4. Update your package json

```json

"scripts":{
   "generate": "cloudkeys -g"
}

```

The command `-g` will generate the your .env file with your keys and secrets from your azure keyvault.

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