# getContext()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getContext()

> **getContext**(): [`CLIContext`](https://getpromptscript.dev/api-reference/cli/src/interfaces/CLIContext/index.md)

Defined in: [cli/src/output/console.ts:59](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/cli/src/output/console.ts#L59)

Get the current CLI context.

## Returns

[`CLIContext`](https://getpromptscript.dev/api-reference/cli/src/interfaces/CLIContext/index.md)