Skip to main content

Tools and Conventions

In this course, we will be using the treasury command line tool. This is a binary that is available for Linux and macOS. It implements an interpreter to interact with Cordial Treasury instances using the Cordial Scripting Language (CSL). Additional documentation for this language is hosted in the Reference section, but this course will be self-contained.

To setup the treasury tool, follow the instructions in the first two sections of the Download Reference.

In short, run:

curl -Sfs https://dl.cordial.systems/install | to=/usr/local/bin bash

Running Commands

In this tutorial, you will run some commands in a terminal, and some in the CSL interpreter.

CLI commands: If you see the heading "CLI"`, you should run the command in terminal.

Such commands should be run in a terminal
true

CSL commands: If you see the heading "CSL", you should run the command in the CSL interpreter.
You can start a CSL interpreter by running treasury script in a terminal.

Such commands should be run in a CSL interpreter
true

Verify Installation

To verify the tool is installed, run the following command in a terminal:

treasury --version

You should see output like the following - if not, contact Cordial Systems for further help

treasury 24.4.9 (rev bdecfaf42)

The version scheme is YY.F.P, where:

  • YY is the year (e.g. 24 for 2024)
  • F is the feature release within that year
  • P is the patch release for the YY.F release series