Interactive Shell

◷ Reading Time: 3 minutes

The interactive shell is a command-line interface that allows executing expressions and viewing data.

Open the Interactive Shell

In the Designer, if you navigate to Debug, you will see the option, Interactive Shell.

Or you can click on the Interactive Shell icon.

Executing Expressions

The interactive Shell allows executing expressions. Especially, in your project, if you want to try an expression before adding it as a part of the project, you can try it in the shell and check whether it gives the expected results.

The function help content is available if you want to use any built-in functions. You can simply double-click on the function to be inserted into the shell.

You can also use the watch

Shell Commands

The interactive shell also provides capabilities to run commands such as displaying data on the data viewer.

Help Content

You can use help options to view the available commands.

Use /cmds to view the available commands.

Use -help argument with the command that you want to learn further.

For example, /show -help shows the options for show command.

Running a Command

You can run a command using the given options for a particular command.

For example, to see the content of a file, you can use the following commands.

To assign the content to a variable:

JsonContent := fileReadText(<File Path>)|asJson()

To view the content in data viewer:

/show JsonContent -d
Updated on March 28, 2022

Was this article helpful?

Related Articles