Add Codex app-server upgrade skill

This commit is contained in:
Codex
2026-05-25 04:39:06 +00:00
parent 09ff990468
commit 41f1e2e1d0
4 changed files with 72 additions and 3 deletions

View File

@@ -26,13 +26,14 @@ chmod 700 "$RUN_DIR"
usage() {
cat <<USAGE
Usage: $0 <start|stop|status|check-updates> [options]
Usage: $0 <start|stop|status|check-updates|check-upgrade> [options]
Commands:
start Start codex app-server if it is not already running.
stop Stop codex app-server and remove stale runtime files.
status Print whether codex app-server is running.
check-updates [-y] Check GitHub releases and optionally install the latest Codex binary.
check-upgrade [-y] Alias for check-updates.
Environment:
CODEX_BIN Codex executable to replace. Defaults to the codex found on PATH.
@@ -565,7 +566,7 @@ case "$cmd" in
if [[ $# -ne 0 ]]; then usage; exit 2; fi
status_server
;;
check-updates)
check-updates|check-upgrade)
shift || true
check_updates "$@"
;;