> For the complete documentation index, see [llms.txt](https://docs.aurelia.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0821.md).

# AUR0821

## Error Message

`AUR0821: Invalid command "{{command}}" usage with [repeat.for] option "contextual". Only "bind" or static assignment is supported.`

Where `{{command}}` is the binding command used on the `repeat.for` binding.

## Description

This error occurs when using `repeat.for="...; contextual"` together with an unsupported binding command. With `contextual`, Aurelia only supports `bind` (two-way) or static assignment for the contextual bindings.

## Example Trigger

```html
<!-- ❌ Unsupported command with contextual -->
<div repeat.for="item of items; contextual: true; key.trigger: item.id">
  ${item.name}
</div>
```

## Correct Usage

Use `bind` (or static assignment) for contextual bindings.

```html
<!-- ✅ bind is supported -->
<div repeat.for="item of items; contextual: true; key.bind: item.id">
  ${item.name}
</div>
```

## Troubleshooting

* Check the binding command in the error (`{{command}}`) and change it to `.bind` (or remove the command for static assignment).
* If you need event/listener behavior, move it to an element inside the repeater rather than the `repeat.for` declaration.


---

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

```
GET https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0821.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
