|
| 1 | +import { Callout } from 'nextra/components' |
| 2 | + |
| 3 | +## Introduction |
| 4 | + |
| 5 | +For users who prefer not to use Docker, there's a ZIP distribution that contains only Yaci CLI. This allows you to download |
| 6 | +and manage necessary components like Cardano Node, Ogmios, Kupo, and Yaci Store directly through the command line. |
| 7 | + |
| 8 | +Please note that **Yaci Viewer** is not currently supported out-of-the-box in this distribution. |
| 9 | + |
| 10 | +### Who is this for? |
| 11 | + |
| 12 | +- **Developers and system administrators:** Quickly set up a new custom node or multi-node networks |
| 13 | +- **Users wanting more control:** Easily manage compatible component versions and configurations |
| 14 | + |
| 15 | +### Key advantages of the Yaci CLI distribution: |
| 16 | + |
| 17 | +- **Reduced Disk Space:** Requires less disk space than the Docker image, containing only the Yaci CLI binary, configuration files, and any downloaded components. |
| 18 | +- **Version Flexibility:** Specify compatible versions of Cardano Node and other components directly in the download configuration file if the default versions don't meet your requirements. |
| 19 | +- **Customizable Setup:** Developers can selectively enable components like Yaci Store, Ogmios, and Kupo to achieve the same functionality as the Yaci DevKit Docker image. |
| 20 | + |
| 21 | + |
| 22 | +## Supported Platforms |
| 23 | + |
| 24 | +Yaci CLI is currently supported on the following platforms: |
| 25 | + |
| 26 | +1. **Linux x86:** Tested on Ubuntu 20.04, Ubuntu 22.04 |
| 27 | +2. **MacOS 14 (Arm64) or later** |
| 28 | + |
| 29 | +## Installation |
| 30 | + |
| 31 | +- Download the latest version of the Yaci CLI Zip file from the [releases page](https://github.com/bloxbean/yaci-devkit/releases). |
| 32 | +- Unzip the downloaded file. |
| 33 | +- You will find the `yaci-cli` binary in the unzipped folder, and the configuration files in the `config` folder. |
| 34 | + |
| 35 | +## Run Yaci CLI |
| 36 | + |
| 37 | +You can now run the `yaci-cli` binary. However, this distribution doesn't include any of the necessary components for creating a devnet. |
| 38 | +You'll need to download these using Yaci CLI before proceeding. |
| 39 | + |
| 40 | + |
| 41 | +## Download Components |
| 42 | + |
| 43 | +The simplest way to download the necessary components is to use the `download` command. This will automatically download all |
| 44 | +the required components for your specific platform, including Cardano Node, Ogmios, Kupo, Yaci Store, and JRE. |
| 45 | + |
| 46 | +```shell |
| 47 | +yaci-cli:> download |
| 48 | +``` |
| 49 | + |
| 50 | +All components will be downloaded to the `$user_home/.yaci-cli` folder by default. |
| 51 | + |
| 52 | +If you need to replace any existing components, simply use the `--overwrite` option. |
| 53 | + |
| 54 | + |
| 55 | +```shell |
| 56 | +yaci-cli:> download --overwrite |
| 57 | +``` |
| 58 | + |
| 59 | +Alternatively, you can download the components individually using the `download -c <component>` command, replacing `<component>` with the specific component you want to download. |
| 60 | + |
| 61 | +```shell |
| 62 | +yaci-cli:> download -c node |
| 63 | +yaci-cli:> download -c ogmios |
| 64 | +yaci-cli:> download -c kupo |
| 65 | +yaci-cli:> download -c yaci-store |
| 66 | +``` |
| 67 | + |
| 68 | +<Callout type="warning"> |
| 69 | +**Note:** You can change the default `yaci-cli` home folder by setting the `yaci.cli.home` property in the `application.properties` configuration file. |
| 70 | +</Callout> |
| 71 | + |
| 72 | +## Create a new Devnet |
| 73 | + |
| 74 | +Once you have downloaded the required components, you're ready to create a new devnet. You can use the `create-node` command to do this. |
| 75 | + |
| 76 | +```shell |
| 77 | +yaci-cli:> create-node -o --start |
| 78 | +``` |
| 79 | + |
| 80 | +This command will create a new devnet with a single node and start it. By default, Yaci Store, Ogmios, and Kupo are disabled. |
| 81 | +You can enable them by setting their respective `enabled` properties to `true` in the `config/application.properties` file. |
| 82 | + |
| 83 | +Alternatively, you can use the `enable-kupomios`, `enable-yacistore`, or `enable-kupo` commands before creating/starting the devnet. |
| 84 | + |
| 85 | +For more information on the available commands and their usage, refer to the Yaci CLI commands documentation [here](/commands). |
| 86 | + |
| 87 | +## Configuration |
| 88 | + |
| 89 | +You'll find three configuration files within the `config` folder: |
| 90 | + |
| 91 | +### **application.properties :** |
| 92 | + |
| 93 | +This is the main configuration file to manage the functionality of Yaci CLI. |
| 94 | + |
| 95 | +#### 1. Enable/Disable Optional Components |
| 96 | + |
| 97 | +By default, all optional components are disabled. To enable any of them, simply set their respective `enabled` property to `true`. |
| 98 | + |
| 99 | +```properties |
| 100 | +ogmios.enabled=true |
| 101 | +kupo.enabled=true |
| 102 | +yaci.store.enabled=true |
| 103 | +``` |
| 104 | +<Callout type="warning"> |
| 105 | +**Note:** If you want to use Yaci Store for transaction building, script cost evaluation, and transaction submission via a Blockfrost-compatible API layer, |
| 106 | +you'll need to enable both `Yaci Store` and `Ogmios`. |
| 107 | + |
| 108 | +</Callout> |
| 109 | + |
| 110 | +#### 2. Update Ports |
| 111 | +You can update the default ports for the Ogmios, Kupo, and Yaci Store. |
| 112 | + |
| 113 | +```properties |
| 114 | +ogmios.port=1337 |
| 115 | +kupo.port=1442 |
| 116 | +yaci.store.port=8080 |
| 117 | +``` |
| 118 | + |
| 119 | +### **node.properties** |
| 120 | + |
| 121 | +This file contains the configuration for the Cardano Node. You can update the configuration as per your requirements to modify the node's genesis configuration. |
| 122 | + |
| 123 | +### **download.properties** |
| 124 | + |
| 125 | +This file contains the default download versions for the various components. You can update these versions or even provide direct download URLs if needed. |
| 126 | +This configuration helps you to download specific compatible versions of Cardano Node or other components, giving you greater control over your environment. |
| 127 | + |
| 128 | +## Multi Node Network Setup |
| 129 | + |
| 130 | +Since Yaci CLI is used in both Yaci DevKit and this distribution, the commands to create a multi-node network remain the same. |
| 131 | +You can follow the instructions provided in the [Additional Nodes on Different Machines](/multi-node-setup#additional-nodes-on-different-machines) section of the multi-node setup guide. |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
0 commit comments