> For the complete documentation index, see [llms.txt](https://docs.boldminded.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boldminded.com/speedy/docs/cli-commands.md).

# CLI Commands

Speedy comes with a couple of CLI commands to assist with cache clearing. To learn more about using CLI commands with ExpressionEngine [check out their docs](https://docs.expressionengine.com/latest/cli/usage.html).

```bash
php system/ee/eecli.php speedy:clear
```

This command is fairly straightforward. It is similar to clicking the "Clear All" button in the Speedy admin interface. It clears everything from all the caches.

```bash
php system/ee/eecli.php speedy:clear-future
```

This is a command that can be useful if you need to publish content on a specific date and time, but still want to use caching. Cached items that contain entries tags will only display entries that were rendered when the cache item was generated. If you use the Entry Date field to publish entries at a certain time, then the cached items will not contain entries with a future entry date.&#x20;

In order for this command to work you need to add a crontab entry to your server to run this command every minute. When it executes it will look to find any entries with the `entry_date` within the past minute, then bust the cache for any entries found. It is perfectly fine to run this command every minute. It performs a very simple database query, and if it does not find any entries it simply aborts. Then it will try again in another minute, etc.

If the entry is a listing on lets say a news page, then the cache clearing rules for the channel that entry is in will need to clear the parent news page in order for the list of entries to be updated.&#x20;

You can use the `--time=` parameter to use a timeframe other than the default minute. The parameter value is in seconds. `--time=300` will find and clear any entries with the entry date within the last 5 minutes.

```bash
php system/ee/eecli.php speedy:clear-future --time=300
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.boldminded.com/speedy/docs/cli-commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
