Welcome to CST!
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:
- Go to hobbyrobot.com/cst
- 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."
- That's it! You're all set up!
The colore command
Try it out! It looks really cool!
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:
This is what we call the "prompt."
At the prompt, enter the following and then press enter:
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:
Replace webpage with the name of the webpage. Be sure to put http:// or https:// at the beginning of the webpage.
Congratulations! You have just written your first code in CST!
Continue the experience and learn more.
The CST Command Line has many uses:
- A standard terminal
- A custom coding language made by a few eleven-twelve year olds
- Coding for beginners
- For fun
The throw commandThe 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 commandThe html command looks like this:
It will output html code to the screen
The parameter code specifies the html text to output.
Importing predefined librariesThe import command looks like this:
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