> ## Documentation Index
> Fetch the complete documentation index at: https://bakefile.wisl.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> bakefile is a Python task runner with two CLIs: bake runs tasks from bakefile.py, bakefile manages the project. It is not a service or platform.
> Tasks are methods on Bakebook classes in bakefile.py, decorated with @command. Subprocesses run through self.ctx.run().
> Examples are backed by tests; copy them verbatim.

# BakebookError: No 'bakebook' found

> bake cannot find a bakebook variable. Name the variable bakebook, select one with -b, or point bake at the right directory with -C or file with -f.

`bake` looks for a variable named `bakebook` (the default) and did not find one.

```
BakebookError: No 'bakebook' found in /path/to/project/bakefile.py
Searched in: /path/to/project
```

## The variable has a different name

Select it with `-b`:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bake -b my_bakebook build
```

## Running from another directory

Change it with `-C`, or pick another file with `-f`:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bake -C /path/to/project build
bake -f tasks.py build
```

## The file does not define a bakebook

Check the file actually defines and instantiates the bakebook:

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from bake import Bakebook

bakebook = Bakebook()
```

See [Bakebook](/concepts/bakebook) for how bakebooks are defined.
