Skip to content

tari-project/tari-cli

Folders and files

NameName
Last commit message
Last commit date
Nov 21, 2024
Nov 21, 2024
Nov 22, 2024
Jan 8, 2025
Nov 22, 2024
Nov 21, 2024
Nov 21, 2024
Jan 8, 2025
Jan 8, 2025
Nov 22, 2024
Jan 8, 2025
Nov 21, 2024

Repository files navigation

tari-cli

GitHub Release CI Build Status

This CLI tool is the starting point for the development of Tari templates (smart contracts in other blockchains).

Installation

Using cargo

cargo install tari-cli --git https://github.com/tari-project/tari-cli --force

Downloading binaries

You can download latest binary from Releases page.

Prerequisites

  • A locally running Tari Ootle Wallet Daemon.
  • Properly configured project (worth checking after creating a new one) pointing to the right wallet daemon JSON-RPC URL (in project_dir/tari.config.toml).
    • Example:
      [networks.local]
      wallet-daemon-jrpc-address = "http://127.0.0.1:12009/"

Usage

  1. After installation of the latest version it is recommended to create a new project:

    tari create YOUR_PROJECT_NAME

    Example output:

    $ tari create test                                                                                                                                                                                                                                                                                                                           [11:26:24]
    βœ… Init configuration and directories
    βœ… Refresh project templates repository
    βœ… Refresh wasm templates repository
    βœ… Collecting available project templates
    πŸ”Ž Select project template: Basic - The basic project template to get started on wasm template development.
    β ‹ Generate new project[1/5] ⠁
    βœ… Generate new project

    Please note that currently this will create a new skeleton project which contains configuration and everything to create any new Tari template/smart contract project!

  2. Create new template

    tari new YOUR_TEMPLATE_PROJECT_NAME

    Example output:

    $ tari new SomeNFT                                                                                                                                                                                                                                                                                                                      [11:30:48]
    βœ… Init configuration and directories
    βœ… Refresh project templates repository
    βœ… Refresh wasm templates repository
    βœ… Collecting available WASM templates
    πŸ”Ž Select WASM template: NFT - A simple NFT template to create your own.
    β ‹ Generate new project[ 1/10] ⠁
    βœ… Generate new project
    βœ… Update Cargo.toml
  3. Deploy new template

    Important: You should have an account created with enough funds to deploy!

    tari deploy --account YOUR_ACCOUNT_NAME_OR_ADDRESS YOUR_TEMPLATE_PROJECT_NAME

    Example output:

    tari deploy --account acc some_nft                                                                                                                                                                                                                                                                                                    [11:50:43]
    βœ… Init configuration and directories
    βœ… Refresh project templates repository
    βœ… Refresh wasm templates repository
    βœ… Building WASM template project "some_nft"
    ❓Deploying this template costs 256875 XTR (estimated), are you sure to continue? yes
    βœ… Deploying project "some_nft" to local network
    ⭐ Your new template's address: f807989828e70a18050e5785f30a7bd01475797d76d6b4700af175b859c32774

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published