#holochain #holo #hc #subcommand #binary #helpful #tool

bin+lib holochain_cli

Provides the hc binary, a helpful CLI tool for working with Holochain

216 releases

new 0.5.0-dev.6 Nov 20, 2024
0.5.0-dev.3 Oct 30, 2024
0.4.0-dev.15 Jul 31, 2024
0.3.0-beta-dev.42 Mar 27, 2024
0.0.3 Jul 29, 2021

#129 in Magic Beans

Download history 267/week @ 2024-07-31 96/week @ 2024-08-07 284/week @ 2024-08-14 115/week @ 2024-08-21 106/week @ 2024-08-28 97/week @ 2024-09-04 369/week @ 2024-09-11 259/week @ 2024-09-18 285/week @ 2024-09-25 356/week @ 2024-10-02 246/week @ 2024-10-09 309/week @ 2024-10-16 130/week @ 2024-10-23 124/week @ 2024-10-30 158/week @ 2024-11-06 326/week @ 2024-11-13

741 downloads per month

Apache-2.0 and AGPL-3.0 WITH mif-exception

2MB
3.5K SLoC

holochain_cli

Provides the hc binary, a helpful CLI tool for working with Holochain.

Docs

This command gives you a suite of tools for developing, inspecting, executing, and testing your Holochain apps. Some top-level subcommands are implemented as separate crates, and others are separate binaries -- commands whose names start with hc- and are automatically made available as subcommands if they exist in your shell's path. Here is a list of all available subcommands:

  • hc dna, hc app, and hc web-app scaffold, bundle, and unbundle DNAs, hApps and web hApps respectively. See holochain_cli_bundle for more info.
  • hc sandbox creates and executes temporary or persistent conductor configurations for you to run test instances of your hApp with. See holochain_cli_sandbox for more info.
  • hc run-local-services runs local bootstrap and WebRTC signal servers for peers to establish connections with each other. This is useful for running tests. See holochain_cli_run_local_services for more info.
  • hc scaffold generates integrity, coordinator, UI, and test code for hApps using interactive prompts. See holochain/scaffolding.
  • hc launch runs sandboxed hApp instances with live-reloading UI windows. See hc_launch in holochain/launcher for more info.

Installation

Quick install

Follow the quick start guide on the Holochain Developer Portal to get set up with all the Holochain development tools, including the hc CLI and official extensions.

Build from source

Requirements

Building

From github:

cargo install holochain_cli --git https://github.com/holochain/holochain

From the holochain repo:

cargo install --path crates/hc

Dependencies

~76–115MB
~2M SLoC