📄️ Introduction
Chromia CLI simplifies the development cycle and deployment of Rell dapps, where all the needed capability is available in one CLI. It's a command-line tool that provides a way to interact with the Chromia blockchain using a set of commands.
📄️ create-rell-dapp
You can use the create-rell-dapp command (chr create-rell-dapp) to create a new Rell structured "Hello World" project. It creates a project config file (chromia.yml), a main module (main.rell) in the src/ folder, and test files in the src/test/ folder in your working directory.
📄️ test
You can use the test command (chr test) to run the tests specified in the test key in the project config file (chromia.yml).
📄️ generate
generate client-stubs
📄️ repl
You can use the repl command (chr repl) to run specific Rell methods in the shell, which can be suitable for troubleshooting.
📄️ node
You can use the node command (chr node) to start or update a node with your applications running on it.
📄️ deployment
deployment create
📄️ build
The build command (chr build) creates a blockchain configuration for your dapp. By default, it gets placed in the root folder of your dapp, but you can change it in the project config file (chromia.yml) in compilesource.
📄️ query
You can use the query command (chr query) to test and interact with a chain that's either local or deployed without using a client. You can set a path for the project config file (chromia.yml) or specify a different file using --settings. In addition to that, you can change between a local and deployed chain target with the --deployment and --local flags. The flag is --local by default.
📄️ tx
You can use the tx (transaction) command (chr tx) in the same way as the query command, but you need to sign it with your key pair.
📄️ keygen
The keygen command (chr keygen) generates a public and private key pair.
📄️ install
The install command (chr install) enables you to download and use third-party Rell libraries in your dapp.
📄️ eif
The Ethereum Integration Framework (EIF) command chr eif generate-events-config allows you to generate Solidity events related to certain actions within the dapp (for example, user registrations, token transfers, or other important activities). EIF would monitor and use these events to monitor the Ethereum blockchain and trigger specific responses when these events occur.