1.0.0-beta.37 • Published 4 years ago

@dxos/pad-cli v1.0.0-beta.37

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
4 years ago

Pad CLI

Setup

A number of config variables are required in order to run CLI. One could either provide those in ~/.wire/config.yml in format of yaml.

Operations

To deploy pads we need a number of steps:

  • build: This generates the ditribution files along with configuration specific for the given pad.yml
  • publish: Upload the dist folder to IPFS. Update the hash in the pad.yml
  • register: Use pad.yml to generate a record in WNS.

All this operations can be resumed with one command:

yarn wire pad deploy

Build pad.

Before you publish your pad you need to build it using wire pad build.

Your pad.yml MUST be present and it must have name and version defined.

You can specify the following params in your pad.yml:

  • build: Build command. Defaults to yarn dist.

Example:

name: 'wireline.io/example-pad'
displayName: 'Example Pad'
version: 0.0.0
build: yarn dist

Then run:

yarn run wire pad build

Publish to IPFS

yarn run wire pad publish

Registration

In package root folder:

  • make sure pad.yml is presented, with name and version fields. E.g.:
name: 'wireline.io/example-pad'
displayName: 'Example Pad'
version: 0.0.1
build: yarn dist
package: <IPFS HASH ID GENERATED BY PUBLISH>
  • register pad:
$ yarn run wire pad register

Query

$ yarn run wire pad query --name 'wireline.io/example-pad'

[
  {
    "id": "QmUSmSPUBhPSXSGaHhUDxBn3cjG2gjJ9BiUznvUBiJo37F",
    "type": "wrn:pad",
    "name": "wireline.io/example-pad",
    "version": "0.0.1",
    "owners": [
      "6ee3328f65c8566cd5451e49e97a767d10a8adf7"
    ],
    "bondId": "8e340dd7cf6fc91c27eeefce9cca1406c262e93fd6f3a4f3b1e99b01161fcef3",
    "createTime": "2020-03-10T15:35:04.132179296",
    "expiryTime": "2021-03-10T15:35:04.132179296",
    "attributes": {
      "displayName": "Example Pad",
      "name": "wireline.io/example-pad",
      "type": "wrn:pad",
      "version": "0.0.1"
    }
  }
]
1.0.0-beta.68

4 years ago

1.0.0-beta.66

4 years ago

1.0.0-beta.67

4 years ago

1.0.0-beta.65

4 years ago

1.0.0-beta.64

4 years ago

1.0.0-beta.63

4 years ago

1.0.0-beta.62

4 years ago

1.0.0-beta.60

4 years ago

1.0.0-beta.61

4 years ago

1.0.0-beta.56

4 years ago

1.0.0-beta.59

4 years ago

1.0.0-beta.57

4 years ago

1.0.0-beta.58

4 years ago

1.0.0-beta.55

4 years ago

1.0.0-beta.54

4 years ago

1.0.0-beta.53

4 years ago

1.0.0-beta.52

4 years ago

1.0.0-beta.51

4 years ago

1.0.0-beta.50

4 years ago

1.0.0-beta.49

4 years ago

1.0.0-beta.48

4 years ago

1.0.0-beta.47

4 years ago

1.0.0-beta.46

4 years ago

1.0.0-beta.44

4 years ago

1.0.0-beta.45

4 years ago

1.0.0-beta.42

4 years ago

1.0.0-beta.43

4 years ago

1.0.0-beta.41

4 years ago

1.0.0-beta.40

4 years ago

1.0.0-beta.39

4 years ago

1.0.0-beta.37

4 years ago