[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [index](../README) / tryCurrentApp

# Function: tryCurrentApp()

> **tryCurrentApp**(): [`Application`](../classes/Application) \| `undefined`

Defined in: [application/currentApp.ts:55](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/application/currentApp.ts#L55)

The current application, or `undefined` when none is available. Safe off-app (CLI bootstrap, tests).

## Returns

[`Application`](../classes/Application) \| `undefined`
