# @mmyyrroonn/crust-cli-2

> The Crust command-line interface (Crust CLI) is a set of commands used to access Crust Network resources

Latest version **1.1.0** (published 2024-03-07) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @mmyyrroonn/crust-cli-2
pnpm add @mmyyrroonn/crust-cli-2
yarn add @mmyyrroonn/crust-cli-2
bun add @mmyyrroonn/crust-cli-2
```

Provides the command `crust-cli`.

## 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.0 |
| Published | 2024-03-07 |
| First published | 2024-03-07 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | <=16.20 |
| Dependencies | 8 |
| Unpacked size | 45.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zikun Fan |
| Maintainers | mmyyrroonn |
| Keywords | crust, ipfs, decentralized storage, polkadot |

## Links

- npm: https://www.npmjs.com/package/@mmyyrroonn/crust-cli-2
- Repository: https://github.com/mmyyrroonn/crust-cli-2
- Homepage: https://github.com/mmyyrroonn/crust-cli-2#readme
- Issues: https://github.com/mmyyrroonn/crust-cli-2/issues
- npm.io page: https://npm.io/package/@mmyyrroonn/crust-cli-2

## Dependencies (8)

- [path](https://npm.io/package/path.md) ^0.12.7
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [figlet](https://npm.io/package/figlet.md) ^1.5.0
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [commander](https://npm.io/package/commander.md) ^7.1.0
- [@polkadot/api](https://npm.io/package/@polkadot/api.md) 4.2.2-4
- [ipfs-http-client](https://npm.io/package/ipfs-http-client.md) ^49.0.2
- [@crustio/type-definitions](https://npm.io/package/@crustio/type-definitions.md) ^1.3.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2024-03-07

## README

# Crust Command Line

The Crust command-line interface (Crust CLI) is a set of commands used to access Crust Network resources

## Quick Start

Please refer this [doc]([https://](https://wiki.crust.network/docs/en/buildGettingStarted)) to see how Crust help to host your website without any servers.

## Usage

### 1. Login

> Secret seeds will be stored locally and won't be leaked by cli-itself.

**Login** with Crust Account secret **seeds**(*12/24 random words*), it will be used to sign your publishing transaction.

```shell
npx crust-cli login "vanish desert itch writer pretty unite wax wistful painful pine key bore"
```

### 2. Pin

> If you are not familiar with IPFS, we highly recommend you to install [the IPFS Desktop of Crust version](https://apps.crust.network/#/storage/welcome)

**Pin** will add your file/folder to local IPFS. Make sure you installed [IPFS](https://ipfs.io/#install) and keep it running.

```shell
npx crust-cli pin my-website/build/
```

### 3. Publish

> Please login first, otherwise you will failed

**Publish** will send a `place storage order` transaction to chain, and the storage nodes in Crust Network will help you to store your file through IPFS

```shell
npx crust-cli publish QmevJf2rdNibZCGrgeyVJEM82y5DsXgMDHXM6zBtQ6G4Vj
```

### 4. Status

Status will help you to monitor your file on-chain

```shell
npx crust-cli status QmevJf2rdNibZCGrgeyVJEM82y5DsXgMDHXM6zBtQ6G4Vj
```

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