---
title: "enter command"
description: "Use the enter command in Tiptap to trigger an enter key action for automated text entry and formatting. More in the docs."
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/api/commands/selection/enter.md)

# enter command

Use the enter command in Tiptap to trigger an enter key action for automated text entry and formatting. More in the docs.

The `enter` command triggers an enter programmatically.

## Use the enter command

```js
editor.commands.enter()
```
