open-index/open-npm huggingface dataset:
npm package: @krane/cli
Description: A command-line tool for working with Krane.
Author: Krane
Latest version: 0.4.1
Deprecated: this package has been deprected in favor of https://www.npmjs.com/package/krane

![CLI](https://res.cloudinary.com/biensupernice/image/upload/v1602471644/Marketing_-_Krane_CLI_zfw8vh.png)

A command-line tool for working with [Krane](https://krane.sh)

[![npm version](https://badge.fury.io/js/%40krane%2Fcli.svg)](https://badge.fury.io/js/%40krane%2Fcli)

**Documentation:** https://www.krane.sh/#/docs/cli

## Install

```
npm i -g @krane/cli
```

## Contributing

The Krane CLI is written in Typescript using the [OCLIF](https://oclif.io/) framework.

Commands are located under the [/src](https://github.com/krane/cli/tree/master/src/commands) directory
npm package: @krane/common
Description: Common utility library for Krane
Author: Krane
Latest version: 0.5.96

<img src="https://github.com/krane/krane/blob/main/docs/assets/krane-wordmark.png?raw=true" width="350">

> Common modules written in Typescript to interface with [Krane](https://github.com/krane/krane)

[![npm version](https://badge.fury.io/js/%40krane%2Fcommon.svg)](https://badge.fury.io/js/%40krane%2Fcommon)

## Install

```
npm i @krane/common
```

## Examples

```typescript
import { KraneClient } from "@krane/common";

// Create an authenticated client to interface with a Krane instance
const client = new KraneClient("https://krane.example.com", "Bearer ...");

// Get all deployments
const deployments = client.getDeployments();

// Restart all deployments
for (const deployment of deployments) {
  await client.restartDeployment(deployment.name)
}
```