@holochain-playground/cli

0.2.0 • Public • Published

@holochain-playground/cli

Small CLI utility to run the Holochain Playground connected to a real Holochain conductor.

This is useful as an introspection tool, to understand what's really going on in your Holochain node.

Running directly pointing to a running conductor

npx @holochain-playground/cli ws://localhost:8888 ws://localhost:8889

This URL should point to the Admin interfaces of the conductors.

Setting up in an NPM hApp development environment that uses hc sandbox

If you run this CLI from the same folder from which you run your hc sandboxes, it will automatically connect with the conductors that are live.

  1. Install the CLI with:
npm install -D @holochain-playground/cli
  1. Add a playground script in your package.json:
{
    ...
    "scripts": {
        "start": "concurrently \"npm run start:hc\" \"npm run playground\"",
        "start:hc": "hc s generate --run=8888",
        "playground": "holochain-playground"
    }
}

Now, when you run npm start, it will bring up the playground connected to the conductor.

Dependencies (0)

    Dev Dependencies (46)

    Package Sidebar

    Install

    npm i @holochain-playground/cli

    Weekly Downloads

    239

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    4.46 MB

    Total Files

    8

    Last publish

    Collaborators

    • guillem.cordoba