> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# init

> Initialize the plugin environment.

<Note>
  This API must be called; otherwise the plugin cannot run. Call it once as early as possible at startup (multiple calls are ignored).
  Preferably call it immediately after `AppRegistry.registerComponent`.
</Note>

```ts theme={null}
async init(): Promise<void>;
```

## Example

```ts wrap theme={null}
import { PluginManager } from 'sn-plugin-lib';

/**
 * Example: initialize plugin environment.
 */
export async function exampleInit() {
 await PluginManager.init();
}
```
