Repository navigation
Conversation
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>
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 was referenced Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames the CLI command from
openshelltoos. Every package keepsopenshellas a link toos, which runs the same command. The rename notice for that name ships switched off; #6206 turns it on.Related Issue
Related to #6199
osonce the Snap Store grants the alias, and closes the issue.Changes
openshell-clibinary target isos, and clap reportsos. Whenargv[0]isopenshell(oropenshell.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 whileRENAME_WARNING_ON_BY_DEFAULTisfalse;OPENSHELL_SUPPRESS_RENAME_WARNINGhides it once it's on. Shell completion registration never prints it.openshell_core::forward::cli_executable()swaps a deprecatedopenshellpath for theosbinary next to it, soProxyCommandentries written through the old name keep working after the link is removed.openshellpackage name; the binary inside isos.osand anopenshellsymlink./usr/bin/osand link/usr/bin/openshellto it. The RPM installsos.1, withopenshell.1linked to it.osand runsbin.install_symlink "os" => "openshell".osapp that requests anosalias. Itsopenshellapp runsbin/osdirectly, because Store installs won't haveosuntil the alias is granted.oswhen it's onPATHand falls back toopenshellfor releases from before the rename.deploy/man/os.1.md), docs, skills, examples, and E2E/dev scripts useos. Snap instructions and the snap canary keepopenshell. The installation page documents the rename. Completion help writesosfile names.scripts/bin/osreplacesscripts/bin/openshell, which is now a symlink that passes its name through, so the dev build behaves like an installedopenshelllink.Release Notes
The CLI command is now
os.openshellstill works and will be removed in a future release.Testing
cargo test -p openshell-cliandcargo test -p openshell-corepass. Unit tests cover deprecated-name detection, the notice default and suppression, completion-script normalization, and theospath that SSH configs record.cargo testforopenshell-server,openshell-providers,openshell-policy,openshell-driver-kubernetes, andopenshell-tuipasses. Inopenshell-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 clippyfor the CLI, core, and server, pluscargo fmt, are clean.cargo checkpasses for thee2e/rusttests.tasks/scripts/test-packaging-assets.sh,tasks/scripts/test-install-sh.sh, and the Homebrew formula tests pass. The deb staging assertions needdpkg-deband run in CI.mise run markdown:lint,docs:nav, anddocs:build:strictpass.os, anopenshellsymlink with no notice, matching exit codes for bad arguments, andopenshell completions zshregisteringos.osexists andopenshellresolves to it after an upgrade; CI runs them.Still open after this PR:
osalias request to the Snap Store is deferred. Store reviewers rarely grant two-letter aliases;piwas granted as an exception for an established command, andkqwas pushed back for lack of a user base. We'll request it onceosis established on the other channels. Until then, Store installs haveopenshellandopenshell.os; feat(snap): run the CLI as os through the granted Store alias #6207 holds the snap change for after the grant.openshelllink and notice needs its own issue.Checklist