CLI

Using the CLI to run PromptScript.


Using the promptscript alias, you can execute scripts or run individual commands.

Running PromptScript Files

$ promptscript file.prompt

Or, if you’d like to run the file with parameters:

$ promptscript file.prompt param1="Hello" param2="World"

These values can then be accessed directly in the file:

file.prompt
1show "{}, {}!".format(param1, param2)
Output: Hello, World!

Running Commands

$ promptscript

This will enter into the CLI. To exit, press ^+d.