Deployment

Table of Contents


Introduction

We present how to deploy workloads on the ThreeFold Grid using TFROBOT.

Prerequisites

To deploy workloads on the TFGrid with TFROBOT, you first need to install TFROBOT on your machine and create a configuration file.

Deploy Workloads

Once you've installed TFROBOT and created a configuration file, you can deploy on the TFGrid with the following command. Make sure to indicate the path to your configuration file.

tfrobot deploy -c ./config.yaml

Delete Workloads

To delete the contracts, you can use the following line. Make sure to indicate the path to your configuration file.

tfrobot cancel -c ./config.yaml

Logs

To ensure a complete log history, append 2>&1 | tee path/to/log/file to the command being executed.

tfrobot deploy -c ./config.yaml 2>&1 | tee path/to/log/file

Using TFCMD with TFROBOT

Get Contracts

The TFCMD tool works well with TFROBOT, as it can be used to query the TFGrid, for example you can see the contracts created by TFROBOT by running the TFCMD command, taking into consideration that you are using the same mnemonics and are on the same network:

tfcmd get contracts

For more information on TFCMD, read the documentation.

Last change: 2024-02-27