﻿# Running a Runbook

Unlike a deployment with a pre-defined lifecycle, Runbooks can run on any environment in any order.  Runbooks are designed to automate routine maintenance tasks.  Maintenance tasks might need to run on **Test** and **Production** but not on **Development** environments.

1. From the *Hello Runbook* runbook you created on the previous page, click **RUN...**.

This screen provides the details of the Runbook you are about to run.

:::figure
![run runbook basic options](/docs/img/getting-started/first-runbook-run/images/run-runbook-basic-options.png)
:::

1. Select an environment.
1. Click **RUN**.

:::figure
![run runbook results](/docs/img/getting-started/first-runbook-run/images/run-hello-runbook-results.png)
:::

Because we didn't define any deployment targets for the target environment, Octopus ran the script directly on the Octopus Server.  If you are on Octopus Cloud, Octopus Deploy leased a [dynamic worker](/docs/infrastructure/workers/dynamic-worker-pools/#on-demand) (a machine that executes tasks on behalf of the Octopus Server) that was then used to execute the hello world script.

The next step will cover [how to configure and use variables in runbooks](/docs/getting-started/first-runbook-run/runbook-specific-variables).

## Further reading

For further reading on running a Runbook please see:

- [Running a runbook](/docs/runbooks/running-a-runbook)
- [Runbook vs Deployments](/docs/runbooks/runbooks-vs-deployments)
- [Runbook Documentation](/docs/runbooks)
- [Runbook Examples](/docs/runbooks/runbook-examples)
