mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
84ac970dc7
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
25 lines
424 B
Markdown
25 lines
424 B
Markdown
# opencode web
|
|
|
|
> Start an OpenCode server with a web interface.
|
|
> More information: <https://opencode.ai/docs/cli#web>.
|
|
|
|
- Start the web interface on the default port:
|
|
|
|
`opencode web`
|
|
|
|
- Start on a specific port:
|
|
|
|
`opencode web --port {{8080}}`
|
|
|
|
- Start on a specific hostname:
|
|
|
|
`opencode web --hostname {{0.0.0.0}}`
|
|
|
|
- Enable mDNS service discovery:
|
|
|
|
`opencode web --mdns`
|
|
|
|
- Display help:
|
|
|
|
`opencode web {{[-h|--help]}}`
|