Introduction Learning the basics
Advanced
Data Handling

CST Docs


Intro


Welcome to CST!

Intro


Welcome to the CST command line!

Now that you have set up your command line, you can learn some basic commands.
Click on the "learning your first commands" link to get started.

Getting hep in the terminal


Using the help and docs commands

If you ever need assistance in the terminal, simply type the help or docs commands.

Setting up CST


We are glad you want to learn CST! To set up the web-based terminal, do the following:

  1. Go to hobbyrobot.com/cst
  2. If you have contacted the developers and have an account, sign in with your username and password, a data key, or a QR code.
    Otherwise, simply log in with google, github, or apple. You may also sign in as a guest using the username "Guest" and the password "123."
  3. That's it! You're all set up!

The colore command


Try it out! It looks really cool!

Intro


First Code

Today you will learn how to run your first lines of code.

The echo command

The echo command is used to return a line of text.
When you enter the terminal, you should see something like this:

CST/your_name-->

This is what we call the "prompt."
At the prompt, enter the following and then press enter:

echo hi

As you can see, this outputs the phrase "hi." You can enter anything you want after the "echo," and it will work.

The open command

The open command opens a new page.
Simply enter the following command at the prompt:

open [webpage]

Replace webpage with the name of the webpage. Be sure to put http:// or https:// at the beginning of the webpage.

Wrapping up

Congratulations! You have just written your first code in CST!
Continue the experience and learn more.

Intro


Uses

The CST Command Line has many uses:

[Caden, help add to this list please]

The throw command

The throw command looks like this:

throw [type] [message]

The parameter message specifies the text to write, and type specifies the text style.
Type can be output, important, comment, error, or fatal-error. Try them out!


The html command

The html command looks like this:

html [code]

It will output html code to the screen

The parameter code specifies the html text to output.

Running javascript

The js command looks like this:

js [code]

The parameter code specifies the javascript to run.


Importing predefined libraries

The import command looks like this:

import [name]

The parameter name specifies the text to write, and type specifies the text style.
The name parameter must be in the following lists:


If you want to import a library under a different name, you can use namespaces. For example, if you want to import the library test-lib under the name test, you could write the following:

import test-lib test

Advanced


Data handling