Codex 皮肤命令速查表:CLI、Codepilot TUI 与 Go 工具命令一览
Codex Skin Command Cheat Sheet
这份速查表汇总了 Codex 皮肤命令在 CLI、Codepilot TUI 和独立 Go 工具三处的用法。在 Codex CLI 中运行 /theme 可列出已安装皮肤,/theme Monokai Stone 直接切换,codex-theme preview 可先预览再 apply,rollback 可撤销错误应用。
--
title: "Codex Skin Command Cheat Sheet"
description: "### Codex Skin Command Reference Cheat Sheet"
tags: ["codex", "skin", "command", "cheat", "skins"]
canonical_url: https://awesomecodexskin.com/blog/codex-skin-command-cheat-sheet
Codex Skin Command Reference Cheat Sheet
Codex skin commands are few, but they live in three different places: the CLI, the Codepilot TUI, and a separate Go tool. This cheat sheet puts the whole set in one table so you can copy and move on.
The command table
Install command, once per machine:
bash
curl -fsSL https://raw.githubusercontent.com/vufly/bearded-theme-ports/master/scripts/install-codex.sh | sh
How to list installed codex skins
- Open Codex CLI and run /theme.
- The /theme command list shows every port currently installed - nothing more, nothing less.
- If it is empty, run the install script above, close the prompt, and open it again. Ports are read at startup.
Codex Themes CLI adds a preview step before you commit: codex-theme preview renders the palette without writing it, which is the safer order when you are testing something like Tokyo Night CLI against a light terminal.
Switch a codex skin from the terminal
You do not have to use the picker. Name the theme and it applies immediately:
bash
inside Codex CLI
/theme Monokai Stone
/theme Solarized
from a normal shell, using the index slug
codex-theme apply amber-nocturne
Two things worth knowing. Some ports cache colors at startup, so if the palette looks wrong after an apply, restart Codex CLI before you assume it failed. And codex-theme rollback is faster than re-applying the previous theme by name when you are comparing two candidates.
Codex skin shortcuts worth memorising
- Name matching is forgiving. /theme Monokai Stone works without quoting the space in the CLI prompt.
- Arrow keys plus Enter beats typing the full name when the list is short.
- Preview, then apply. codex-theme preview before codex-theme apply saves a restart each time.
- Export once. codex-theme export writes the same palette to your terminal profile, so the prompt and Codex stop disagreeing.
- Rollback before experimenting. One codex-theme rollback undoes a bad apply.
When a command quietly does nothing
- /theme prints nothing - no port installed yet. Run the install script and reopen the prompt.
- Palette looks wrong after apply - restart Codex CLI; ports cache colors at startup.
- /skin is not recognised - it only exists inside the Codepilot TUI (npm i -g @charzhu/codepilot), not in stock Codex CLI.
- Desktop does not respond to /theme - CLI skins are palette-only. Desktop skins are installed differently; the install guide covers both paths.
- Two themes with the same name - ports with identical display names collide in the picker. Apply by slug with codex-theme apply instead, which is unambiguous.
- Changes vanish after an update - a Codex update can reset the theme directory. Re-run /theme and reapply; if it keeps happening, keep the install script in your dotfiles so restoring takes one command.
- The terminal outside Codex still looks different - /theme only colors Codex. Run codex-theme export once and the surrounding prompt, selection highlight and background follow the same palette.
A useful habit: keep a note of the exact command that produced the look you settled on. Six months later, when you rebuild a machine, that one line is faster than re-reading the whole picker.
Where to go next
The four skins referenced here are all in the Mono & Terminal category: Monokai Stone CLI, Solarized CLI, Tokyo Night CLI and Vivid Purple CLI. If you want the reasoning behind each install format, Codex skin file formats explained is the companion read, and the skin index lists everything currently catalogued.
Longer version with the reference details is here: https://awesomecodexskin.com/blog/codex-skin-command-cheat-sheet
来源:Google AI:DEV 作者专属(RSS) · dev.to