Skip to main content

Command Summary

There are three categories of CLI Commands:

  1. Administrative and Template Management
  2. Core Element Commands
  3. Element-Specific Commands
note

You can type help to see a list of all commands. You can also type help {commandName} to see the syntax for that specific command.


template-cli:> help
AVAILABLE COMMANDS

Built-In Commands
help: Display help about available commands
stacktrace: Display the full stacktrace of the last error.
clear: Clear the shell screen.
quit, exit: Exit the shell.
history: Display or save the history of previously run commands
version: Show version info
script: Read and execute commands from a file.
.....

template-cli:> help add-element
NAME
add-element - Add Element

SYNOPSIS
add-element --type String --elementName String

OPTIONS
--type String
Element type e.g label, image, spinner etc
[Optional]

--elementName String
name of the newly created element
[Optional]
caution

This guide does not detail the built-in CLI commands as these are common to all CLI tools.

Command List

These are commands used to manage templates, or to start the text editor.

CommandUsageCommandUsage
add-templateCreates a new templatesetup-cps-connection
show-templateShows a specific template.show-templatesShows all templates
select-templateSelects an existing template to edit.load-templateLoads a previously saved template by filename or hex value.
delete-all-templatesDeletes all template files in the directory.delete-templateDeletes a specified template
save-jsonSaves the template as a JSON file.save-templateSaves the current template, and outputs its Hex value.
start-text-editingBegins the text editor watcher in the specified or current folder.stop-text-editingStops the text editor watcher