Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crustio/crust-cli
The Crust command-line interface (Crust CLI) is a set of commands used to access Crust Network resources
https://github.com/crustio/crust-cli
cli crust ipfs polkadot-js
Last synced: about 1 month ago
JSON representation
The Crust command-line interface (Crust CLI) is a set of commands used to access Crust Network resources
- Host: GitHub
- URL: https://github.com/crustio/crust-cli
- Owner: crustio
- License: gpl-3.0
- Created: 2021-02-22T03:32:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T06:23:30.000Z (10 months ago)
- Last Synced: 2024-11-14T14:43:28.031Z (about 1 month ago)
- Topics: cli, crust, ipfs, polkadot-js
- Language: JavaScript
- Homepage: https://crust.network
- Size: 284 KB
- Stars: 5
- Watchers: 8
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```