Hummanta CLI Reference

Overview

Hummanta is a tool for compiling multiple languages, supporting the build and compilation of projects such as Solidity and Rust. The toolchain provides a flexible command-line interface, allowing users to easily manage and compile code for different target platforms. The following commands are available for building, managing, and configuring the workspace:

Usage: hummanta <COMMAND>

Commands:
  build      Builds the entire workspace
  init       Initializes the workspace
  target     View and manage compilation targets
  toolchain  Manage compilation toolchains
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

Init

Automatically detects the type of the current project (e.g., Solidity or Rust) and generates a hummanta.toml configuration file.

hummanta init

Build

Builds the entire project and compiles the source code files.

hummanta build --target=<target>

Target

View and manage compilation targets.

hummanta target add <target>
hummanta target remove <target>
hummanta target show <target>
hummanta target list
  • add: Adds a new target configuration.
  • remove: Removes the specified target configuration.
  • show: Displays the details of the specified target.
  • list: Lists all targets.

For more information about the target, see the core concept Target.

Toolchain

View and manage different toolchains used for the compilation process.

hummanta toolchain add <language>
hummanta toolchain remove <language>
hummanta toolchain show <language>
hummanta toolchain list
  • add: Installs the specified language's toolchain.
  • remove: Removes the toolchain for the specified language.
  • show: Displays the details of the the specified language's toolchain.
  • list: Lists all toolchains.

For more information about the toolchain, see the core concept Toolchain.

Frequently Asked Questions

1. How do I switch the target platform?

You can specify the target platform by using hummanta build --target=<target>. If no target is specified, the default target from the hummanta.toml file will be used.

2. What should I do if the hummanta.toml file is missing?

If the hummanta.toml file is missing or hasn't been generated, you can run hummanta init to regenerate it.