Getting started with CLI
Contens
Install SymOntoClay CLI
See here or here about installing SymOntoClay CLI.
Write some code
Get started with "Hello, World".
-
Open a command prompt and navigate to your home directory.
On Windows:
cd %HOMEPATH% -
Create new worldspace.
soc new Example
-
Navigate to directory with new NPC.
cd %HOMEPATH%/Example/Npcs/Example
-
Write some code in the file Example.soc.
app Example{on Init =>{"Helo, World!" >> @>log;}}
This is your SymOntoClay code. In this code, you:
- Declare application Example.
- Add life cycle trigger Init. This trigger fires when your code starts.
- Add writing string "Helo, World!" to log channel.
-
Navigate to root directory of the worldspace and run It.
cd %HOMEPATH%/Examplesoc run
Write more code
Learn more about SymOntoClay DSL.
Try examples.