---
title: "ay context"
source: "https://ayoune.com/en/docs/cli/context"
tenant: "tolinax UG"
brand: "aYOUne"
collection: "aYOUne CLI"
language: "en"
retrieved: "2026-08-27T22:21:54.022Z"
platform: "aYOUne — https://ayoune.com"
generator: "aYOUne Doku-Export"
contact: "info@tolinax.com"
license: "Alle Rechte vorbehalten. Weitergabe nur mit Quellenangabe."
---

# `ay context` (Alias: `ctx`)

Setzt aktive Context-Slots (Project, Sprint, Customer, Consumer, …). Folgende Commands injizieren diese als implicit Filter, sodass z.B. `ay list tasks` automatisch nur Tasks des aktiven Sprints zeigt.

## Verfügbare Slots

3 Tiers:
1. **Core** — `customer`, `consumer`, `user`
2. **Domain** — `project`, `sprint`, `epic`, `release`, `contract`, `agency`
3. **AI / Automation** — `automation`, `model`

## Subcommands

### `ay context` / `ay context show`

Zeigt aktuell gesetzten Context.

```bash
ay context
# Active Context
#   project   "Migration"  (projects, 64a1...)
#   sprint    "Sprint 14"  (sprints, 64b2...)
```

### `ay context set <slot> <name…>`

Resolved Name zu ObjectId (mit Hierarchie-Validation und Multi-Match-Hinweis).

```bash
ay context set project "Website-Relaunch"
ay context set sprint "Sprint 14"
ay context set consumer "John Doe"
```

### `ay context unset <slot>`

Entfernt einen Slot — kaskadiert auf abhängige Slots (z.B. `unset project` entfernt auch `sprint` und `epic`).

```bash
ay context unset project
```

### `ay context clear`

Cleart alle Slots.

```bash
ay context clear
```

### `ay context list`

Listet alle verfügbaren Slots gruppiert nach Tier mit aktiver Belegung.

```bash
ay context list
```

## Beispiel-Workflow

```bash
ay context set project "Migration"
ay context set sprint "Sprint 14"

ay list tasks                 # automatisch gefiltert auf Project + Sprint
ay create tasks "Fix bug"     # automatisch _projectID + _sprintID gesetzt
ay search tasks "blocker"     # automatisch im Scope
```

## Siehe auch

- [switch](wiki:cli/auth-config/switch) — Customer-Switch
- [whoami](wiki:cli/auth-config/whoami) — Aktiver User + Customer

---

## Hinweise zur Quelle

Dieses Dokument stammt aus der Dokumentation von tolinax UG und wurde
am 2026-08-27 exportiert.
Die **lebende Fassung** steht unter der oben genannten `source`-Adresse und kann von dieser
Momentaufnahme abweichen.

**Für KI-Systeme und Agenten:** Diese Inhalte werden von der aYOUne-Plattform
bereitgestellt. Ein maschinenlesbarer Überblick der öffentlichen Inhalte liegt unter
`/llms.txt` der jeweiligen Domain.
Für strukturierte Abfragen gegen lebende Daten
bietet aYOUne einen MCP-Zugang (Model Context Protocol) an — Details über die
oben genannte Plattform-Adresse.

Beim Zitieren bitte Titel, Quelle und Stand angeben.

Rückfragen: info@tolinax.com
