Skip to content

feat(cli): rename the openshell command to os - #6203

Draft
purp wants to merge 3 commits into
ai-openshell:mainfrom
purp:feat/6199-rename-cli-to-os/purp
Draft

purp wants to merge 3 commits into
ai-openshell:mainfrom
purp:feat/6199-rename-cli-to-os/purp

Conversation

@purp

@purp purp commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Renames the CLI command from openshell to os. Every package keeps openshell as a link to os, which runs the same command. The rename notice for that name ships switched off; #6206 turns it on.

Related Issue

Related to #6199

Changes

  • CLI: the openshell-cli binary target is os, and clap reports os. When argv[0] is openshell (or openshell.exe), the CLI runs in-process, so arguments, stdin/stdout, exit codes, and signals are unchanged. The notice it can print there (warning: `openshell` has been renamed to `os`; `openshell` will be removed in a future release.) is off while RENAME_WARNING_ON_BY_DEFAULT is false; OPENSHELL_SUPPRESS_RENAME_WARNING hides it once it's on. Shell completion registration never prints it.
  • SSH configs: openshell_core::forward::cli_executable() swaps a deprecated openshell path for the os binary next to it, so ProxyCommand entries written through the old name keep working after the link is removed.
  • Packaging: release artifact and asset names keep the openshell package name; the binary inside is os.
    • Release tarballs contain os and an openshell symlink.
    • The deb and RPM install /usr/bin/os and link /usr/bin/openshell to it. The RPM installs os.1, with openshell.1 linked to it.
    • The Homebrew formula installs os and runs bin.install_symlink "os" => "openshell".
    • The snap adds an os app that requests an os alias. Its openshell app runs bin/os directly, because Store installs won't have os until the alias is granted.
  • install.sh registers the local gateway with os when it's on PATH and falls back to openshell for releases from before the rename.
  • Hints and docs: CLI hints, help examples, the man page (now deploy/man/os.1.md), docs, skills, examples, and E2E/dev scripts use os. Snap instructions and the snap canary keep openshell. The installation page documents the rename. Completion help writes os file names.
  • Dev wrapper: scripts/bin/os replaces scripts/bin/openshell, which is now a symlink that passes its name through, so the dev build behaves like an installed openshell link.
$ os --version
os 0.1.12-dev.35+gcef65e3b3
$ openshell --version
os 0.1.12-dev.35+gcef65e3b3

Release Notes

The CLI command is now os. openshell still works and will be removed in a future release.

Testing

  • cargo test -p openshell-cli and cargo test -p openshell-core pass. Unit tests cover deprecated-name detection, the notice default and suppression, completion-script normalization, and the os path that SSH configs record.
  • cargo test for openshell-server, openshell-providers, openshell-policy, openshell-driver-kubernetes, and openshell-tui passes. In openshell-supervisor-network, six proxy tests failed when run in parallel on macOS and passed when run alone; this branch only changes two comments in that crate.
  • cargo clippy for the CLI, core, and server, plus cargo fmt, are clean. cargo check passes for the e2e/rust tests.
  • tasks/scripts/test-packaging-assets.sh, tasks/scripts/test-install-sh.sh, and the Homebrew formula tests pass. The deb staging assertions need dpkg-deb and run in CI.
  • mise run markdown:lint, docs:nav, and docs:build:strict pass.
  • Manual: os, an openshell symlink with no notice, matching exit codes for bad arguments, and openshell completions zsh registering os.
  • Not run locally: the deb/RPM upgrade lanes now also check that os exists and openshell resolves to it after an upgrade; CI runs them.

Still open after this PR:

  • The os alias request to the Snap Store is deferred. Store reviewers rarely grant two-letter aliases; pi was granted as an exception for an established command, and kq was pushed back for lack of a user base. We'll request it once os is established on the other channels. Until then, Store installs have openshell and openshell.os; feat(snap): run the CLI as os through the granted Store alias #6207 holds the snap change for after the grant.
  • Removing the openshell link and notice needs its own issue.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

purp added 2 commits December 3, 2026 12:03
Build the CLI as `os` and keep `openshell` as a link to it in every
package. Started through `openshell`, the CLI runs the same command and
prints a one-line rename notice to stderr, which
OPENSHELL_SUPPRESS_RENAME_WARNING hides.

Release archives, the deb, the RPM, and the Homebrew formula install
`os` with an `openshell` link. The snap adds an `os` app with an `os`
alias request, and its `openshell` app runs the CLI without the notice
until the Store grants the alias. SSH configs record the `os` path
even when generated through the old name.

CLI hints, help examples, tests, and development scripts use `os`.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Document the rename on the installation page, including the snap's
`openshell.os` app and `os` alias and the variable that hides the
rename notice. Snap instructions keep `openshell`, which runs the CLI
without the notice until the Store grants the `os` alias.

Completion help writes the files that bash, fish, and zsh load for
`os`.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
Running the CLI as openshell no longer prints the rename notice unless
it is switched on in a later release. OPENSHELL_SUPPRESS_RENAME_WARNING
still hides it once it is on.

Related to ai-openshell#6199

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant