返回命令列表

Linux command

opencode-uninstall 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Uninstall opencode and remove all related files

opencode uninstall

Preview what would be removed without changing anything

opencode uninstall --dry-run

Uninstall but keep configuration files

opencode uninstall --keep-config

Uninstall but keep session data and snapshots

opencode uninstall --keep-data

Skip confirmation prompts

opencode uninstall --force

说明

opencode uninstall removes the opencode binary and, by default, its supporting files from the current system: configuration, cached data, and session history. The `--keep-config` and `--keep-data` flags preserve specific categories of files, which is useful when reinstalling or switching channels. Use `--dry-run` first to audit exactly which paths will be deleted before running the real uninstall.

参数

-c, --keep-config
Keep configuration files. Default: false.
-d, --keep-data
Keep session data and snapshots. Default: false.
--dry-run
Show what would be removed without removing anything. Default: false.
-f, --force
Skip confirmation prompts. Default: false.
--print-logs
Print logs to stderr.
--log-level _LEVEL_
Log level: `DEBUG`, `INFO`, `WARN`, or `ERROR`.
-h, --help
Show help.
-v, --version
Show version number.

FAQ

What is the opencode-uninstall command used for?

opencode uninstall removes the opencode binary and, by default, its supporting files from the current system: configuration, cached data, and session history. The `--keep-config` and `--keep-data` flags preserve specific categories of files, which is useful when reinstalling or switching channels. Use `--dry-run` first to audit exactly which paths will be deleted before running the real uninstall.

How do I run a basic opencode-uninstall example?

Run `opencode uninstall` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --keep-config do in opencode-uninstall?

Keep configuration files. Default: false.