---
title: "enableAutoLogin"
description: "This function can be imported directly from the @dhis2/cypress-commands"
url: https://developers.dhis2.org/docs/cli/cypress/setups/enable-auto-login
source: https://github.com/dhis2/cli-utils-cypress/tree/master/docs/setups/enable-auto-login.md
---

# enableAutoLogin

This function can be imported directly from the `@dhis2/cypress-commands`
module in your support file:

```js
import { enableAutoLogin } from '@dhis2/cypress-commands'
```

It does not expect any parameters and does not return anything, you just need
to execute it:

```js
enableAutoLogin()
```
