> ## 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.

# Directory not found and file name errors

> bake -f takes a file name only, never a path. Use -C to change directory and -f for the name, or create bakefile.py with bakefile init if it does not exist yet.

```
Directory not found: /path/to/project/bakefile.py
File name must not contain path separators: tasks/bakefile.py
File name must end with .py: bakefile
```

`-f` takes a file name only, never a path. Change directories with `-C` instead:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Bad: path in -f
bake -f tasks/bakefile.py build

# Good: -C for the directory, -f for the name
bake -C tasks -f bakefile.py build
```

The first error also appears when `bakefile.py` simply does not exist yet. Create one with:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bakefile init
```

See the [bakefile CLI](/cli/bakefile) for `init` and the other project commands.
