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.
- CLI (don't run this!)
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.
- CSL (don't run this!)
true
Verify Installation
To verify the tool is installed, run the following command in a terminal:
- CLI (run this!)
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:
YYis the year (e.g. 24 for 2024)Fis the feature release within that yearPis the patch release for theYY.Frelease series