31 releases (7 breaking)

0.4000.0-rc.1 Oct 21, 2024
0.4000.0-dev.15 Aug 21, 2024
0.4000.0-dev.11 Jul 18, 2024
0.2000.0 Jan 15, 2024
0.0.4 Nov 28, 2022

#384 in Magic Beans

Download history 14/week @ 2024-07-22 88/week @ 2024-07-29 113/week @ 2024-08-05 104/week @ 2024-08-12 231/week @ 2024-08-19 93/week @ 2024-09-02 1/week @ 2024-09-09 68/week @ 2024-09-16 117/week @ 2024-09-23 215/week @ 2024-09-30 15/week @ 2024-10-07 7/week @ 2024-10-14 468/week @ 2024-10-21 110/week @ 2024-10-28 77/week @ 2024-11-04

662 downloads per month

CAL-1.0 and AGPL-3.0 WITH mif-exception

1MB
18K SLoC

Rust 10K SLoC // 0.0% comments Handlebars 7.5K SLoC Shell 158 SLoC // 0.0% comments

Holochain Scaffolding CLI

A command-line interface for creating and modifying a Holochain application (hApp).

See the full CLI reference here

Getting Started

holonix

The easiest way to start using the scaffolding tool is through holonix:

nix run github:holochain/holonix#hc-scaffold -- --version

cargo

You can also install the CLI globally via cargo.

cargo install holochain_scaffolding_cli

hc-scaffold --version

Usage

Refer to the holochain developer instructions to know how you can use the scaffolding tool to create your own apps.

These are the commands that you can run with the scaffolding tool inside of a holonix develop shell:

USAGE:
    hc-scaffold [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -t, --template <template>    The template to use for the hc-scaffold commands Can either be an option from the
                                 built-in templates: "vanilla", "vue", "lit", "svelte", "react", "headless" Or a path to
                                 a custom template

SUBCOMMANDS:
    collection    Scaffold a collection of entries in an existing zome
    dna           Scaffold a DNA into an existing app
    entry-type    Scaffold an entry type and CRUD functions into an existing zome
    example       Scaffold an example hApp
    help          Prints this message or the help of the given subcommand(s)
    link-type     Scaffold a link type and its appropriate zome functions into an existing zome
    template      Manage custom templates
    web-app       Scaffold a new, empty web app
    zome          Scaffold one or multiple zomes into an existing DNA

Custom Templates

See the docs.rs documentation to learn how to use and create custom templates.

Contributing

We have a contributing guide to help you get started. If you need anything else to get started please reach out on Discord!

Maintenance

We have a maintenance guide which is mainly aimed at maintainers of the project but may be useful for some contributors or users to read.

Dependencies

~105–145MB
~2.5M SLoC