# Automatic Imports

To run imports automatically, you can use one of three methods:

### 1. You can use the ExpressionEngine CLI tool (Recommended):

<pre><code><strong>php system/ee/eecli.php import:run --import_id=2 --limit=1
</strong></code></pre>

To run automatically, you will need to set up a cron to call the command. For more details see: [Running imports using cron](https://docs.boldminded.com/datagrab/docs/automatic-imports/importing-with-cron).

### 2. You can create a template, and include the tag:

```
{exp:datagrab:run_saved_import id="2"}
```

(this will run the import with the id of 2). The import will run when this template is viewed in the browser.

### 3. You can directly call the URL:

```
http://yoursite.com/index.php?ACT=n&id=2
```

Where n is the action id assigned to DataGrab. This is displayed on the module’s homepage.

###
