4.0.5 • Published 2 years ago

@hiro-ui/sdk-cli v4.0.5

Weekly downloads
795
License
MIT
Repository
github
Last release
2 years ago

HIRO SDK CLI

CLI utils for HIRO applications.

Project setup

Prerequisites

  • node 16+
  • yarn 1.22+

Instalation

  • Run yarn global add @hiro-ui/sdk-cli

Commands

hiro-sdk bundle

Bundles compiled application into a zip archive.

We need to build our app first. Run yarn build to create a production build.

As result, we expect a build folder in project root. It should have the following structure:

build
├── asset-manifest.json
├── icon.svg
├── index.html
└── static
    ├── css
    │   └── main.2c2ee846.css
    └── js
        └── main.fb659025.js

Important files

icon.svg is used by HIRO Desktop as the icon of the application.

asset-manifest.json contains paths mapping for your assets. main.js is required. Example asset-manifest.json contents:

{
  "main.css": "static/css/main.2c2ee846.css",
  "main.js": "static/js/main.fb659025.js"
}

HIRO Desktop loads main.js and all .css files found in manifest.

After we've made a production build, we need to bundle the app.
hiro-sdk bundle command creates a bundle.zip archive in the project root.

hiro-sdk publish

Publishes bundled application (bundle.zip) to the graph.

You can provide either host/token/parent combination to command or read those values from env files.

Using explicit arguments:

  • -h = Graph URL
  • -t = Graph token
  • -p = Desktop "ui" app ID on your installation

Using implicit arguments: just pass -e flag to read arguments from .env files

  • HIRO_GRAPH_URL = Graph URL
  • HIRO_GRAPH_TOKEN = Graph token
  • HIRO_DESKTOP_ID = Desktop "ui" app ID on your installation
# Explicit arguments
hiro-sdk publish -h https://acme.graphit.co -t vm8127v89126cn8712616c12c12 -p awv8a57wavmawvawawvaw

# Implicit arguments
hiro-sdk publish -e

As result, your application will be either created or updated, depending on name field in the manifest.yaml. NOTE, that you can only update applications uploaded by you.

Use hiro-sdk --help to get more info

4.0.5

2 years ago

4.0.4

2 years ago

4.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.3.5

2 years ago

4.0.0-alpha.0

3 years ago

3.3.4

2 years ago

3.3.3

2 years ago

3.3.2

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.12

3 years ago

3.2.11

3 years ago

3.2.10

3 years ago

3.2.9

3 years ago

3.2.8

3 years ago

3.2.7

3 years ago

3.2.6

3 years ago

3.2.4-audit.0

3 years ago

3.2.5

3 years ago

3.2.3-alpha.0

3 years ago

3.2.4

3 years ago

3.2.2-alpha.0

3 years ago

3.2.2

3 years ago

3.2.3

3 years ago

3.2.1-alpha.17

3 years ago

3.1.7-audit.23

3 years ago

3.2.1

3 years ago

3.1.7-audit.16

3 years ago

3.2.0

3 years ago

3.1.6-alpha.59

3 years ago

3.1.6-alpha.58

3 years ago

3.1.6-alpha.60

3 years ago

3.1.4-audit.270

3 years ago

3.1.4-alpha.315

3 years ago

3.1.5

3 years ago

3.2.0-alpha.263

3 years ago

3.1.4

3 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago