> For the complete documentation index, see [llms.txt](https://gtfo-modding.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gtfo-modding.gitbook.io/wiki/reference/nested-types/customterminalcommand.md).

# CustomTerminalCommand

Defines custom terminal commands.

## Fields

### Command - String

Name of the command.

### CommandDesc - [LocalizedText](/wiki/reference/nested-types/localizedtext.md) (nested type)

Description of the command.

### PostCommandOutputs - [List TerminalOutput](/wiki/reference/nested-types/terminaloutput.md) (nested type)

List of output returned after terminal command is posted.

### CommandEvents - [List WardenObjectiveEventData](/wiki/reference/nested-types/wardenobjectiveeventdata.md) (nested type)

List of events to execute when command is executed.

Note 1: if you want to set a Chained Puzzle to this command, **only 1 chained puzzle** can be set at once (otherwise, upon command execution, there will be 2 chained puzzle being activated at the same time).

Note 2: basing on Note 1, if you set a Chained Puzzle to the command, for example, let's say that you set the 4th event in the event list with a chained puzzle; by doing so, upon command execution, all events prior to the 4th event will be executed, whereas the 4th event and the events lies after it would be executed after Chained Puzzle Completion.

Note 3: for command set with a Chained Puzzle, you should set the SpecialCommandRule to either `OnlyOnce` or `OnlyOnceDeleted`. Otherwise, executing the command multiple times leads to some bugs (for example, the command events not being executed, the enemy wave for the Chained Puzzle not stopping).

### SpecialCommandRule - [TERM\_CommandRule](/wiki/reference/enum-types.md#term_commandrule) (enum)

Specifies what happens to the terminal command after executing it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gtfo-modding.gitbook.io/wiki/reference/nested-types/customterminalcommand.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
