Skip to main content

CLI: vyasa apply


Usage: vyasa apply [OPTIONS] COMMAND [ARGS]...

Apply proposed changes

┌─ Options ────────────────────────────────────────────────────────────────────┐
│ --help -h Show this message and exit. │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ Commands ───────────────────────────────────────────────────────────────────┐
│ approve Approve and apply a proposed change. │
│ preview Preview a proposed change without applying. │
│ reject Reject a proposed change (archive without applying). │
└──────────────────────────────────────────────────────────────────────────────┘

vyasa apply approve


Usage: vyasa apply approve [OPTIONS]

Approve and apply a proposed change.

By default, shows the diff preview and prompts for confirmation.
Use --yes/-y to auto-confirm. Use --force to skip validation too.
Use --force-branch to override the git branch mismatch check.
If --id is omitted, the active session (from lock) is used.

┌─ Options ────────────────────────────────────────────────────────────────────┐
│ --id TEXT Session/change ID (auto-detects active │
│ session) │
│ --force Skip validation and confirmation │
│ --force-branch Override git branch mismatch check │
│ --yes -y Auto-confirm apply (implies confirm=True) │
│ --interactive Force interactive prompts │
│ --dir PATH Project directory │
│ --help -h Show this message and exit. │
└──────────────────────────────────────────────────────────────────────────────┘

vyasa apply preview


Usage: vyasa apply preview [OPTIONS]

Preview a proposed change without applying.

┌─ Options ────────────────────────────────────────────────────────────────────┐
│ --id TEXT Session/change ID (auto-detects active session) │
│ --dir PATH Project directory │
│ --help -h Show this message and exit. │
└──────────────────────────────────────────────────────────────────────────────┘

vyasa apply reject


Usage: vyasa apply reject [OPTIONS] CHANGE_ID

Reject a proposed change (archive without applying).

Prompts to resume the session to rework (if assistant context
exists) or to archive & reject. Use --yes to skip the prompt.

┌─ Arguments ──────────────────────────────────────────────────────────────────┐
│ * change_id TEXT Session/change ID [required] │
└──────────────────────────────────────────────────────────────────────────────┘
┌─ Options ────────────────────────────────────────────────────────────────────┐
│ --reason TEXT Reason for rejection │
│ --yes -y Skip resume prompt (auto-archive) │
│ --dir PATH Project directory │
│ --help -h Show this message and exit. │
└──────────────────────────────────────────────────────────────────────────────┘