# Running your first local build with the CLI

To run a Bitrise build locally, you only need to:

1. [Install the Bitrise CLI](/bitrise-ci/bitrise-cli/installing-and-updating-the-bitrise-cli).
1. A build configuration: that is, a `bitrise.yml` file.

If you use [bitrise.io](https://www.bitrise.io), you can download your app’s `bitrise.yml` from there: open the Workflow Editor of the app on [bitrise.io](https://www.bitrise.io), under the `bitrise.yml` section.

If you want to create a `bitrise.yml` yourself, simply create a `bitrise.yml` file in the root of your project. You can use this as the base content of the `bitrise.yml`:

```yaml
format_version: '26'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
  envs:
  - MY_NAME: My Name

workflows:
  test:
    steps:
    - script@1.1.3:
        inputs:
        - content: echo "Hello ${MY_NAME}!"
```

This defines an [Environment Variable](/bitrise-ci/configure-builds/environment-variables) with your name and a Workflow called `test`. To run this build:

1. Open the Terminal or some other CLI app.
1. Go to the directory where you saved the `bitrise.yml` file.
1. Run `bitrise local run` with the name of the Workflow you defined in the file.

   ```bash
   bitrise local run test
   ```

That’s it: your first build is running with the Bitrise CLI.
