anomalyco / anomalyco/opencode

opencode2 upgrade cmd

Open
#42,891 2 comments 2 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Aug 16, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

I believe there's no command for making opencode2 update itself to the latest version, but I don't think this is a propper ouput

~ took 2s
❯ opencode2 --version
opencode2 v0.0.0-next-17400

~
❯ opencode2 upgrade
[16:00:32.060] ERROR (#1): Error: ENOENT: no such file or directory, chdir '/home/xxx' -> 'upgrade'
    at chdir (unknown)
    at <anonymous> (src/commands/handlers/default.ts:17:51)
```

### Plugins

_No response_

### OpenCode version

_No response_

### Steps to reproduce

_No response_

### Screenshot and/or share link

_No response_

### Operating System

_No response_

### Terminal

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.