Repository navigation
Description
User Story
I use the OpenShell CLI throughout the day to create, connect to, and inspect sandboxes, and I already alias os to openshell in my shell. I want os to be the real command name so that every install gets the short name, docs and examples can use it, and nobody has to maintain a personal alias.
Problem Statement
The CLI command is openshell, which is long for a command typed many times a day. Users who want a shorter name set up their own aliases, which don't carry over to scripts, CI, other machines, or shared examples. Renaming the command outright would break every existing script, doc link, and muscle memory that calls openshell.
Impact / Why This Matters
Today the only option is a per-user shell alias. Aliases don't apply in non-interactive shells, aren't present in sandboxes or CI runners, and produce examples that don't work for other people. A rename without a compatibility path would break existing automation on upgrade.
Proposed Design
- The CLI would install as
os. All subcommands, flags, output, and exit codes would be unchanged. openshellwould remain installed as a deprecated name. Invoking it would run the same command with the same arguments, stdin/stdout, exit code, and signal handling asos, and would print a one-line notice to stderr saying the command has been renamed toos.- The notice could be suppressed with an environment variable, so existing scripts that check stderr keep working during the transition.
- Only the CLI command name would change. The product name, config and state directories,
OPENSHELL_*environment variables, package names, and the other binaries (openshell-gateway,openshell-prover,openshell-sandbox) would stay as they are. openshellwould keep working for at least one minor release; its removal would be tracked in a separate issue.
Suggested UX
$ os sandbox list
NAME STATUS ...
$ openshell sandbox list
warning: `openshell` has been renamed to `os`; `openshell` will be removed in a future release.
NAME STATUS ...
$ OPENSHELL_SUPPRESS_RENAME_WARNING=1 openshell sandbox list
NAME STATUS ...Acceptance Criteria
- Homebrew, Debian, RPM, snap, and the standalone installer provide an
oscommand. - Each of those channels also provides
openshell, which behaves identically toosapart from the stderr notice. -
openshellpreserves arguments, stdin/stdout, exit codes, and signal behavior. - The notice can be suppressed with an environment variable.
-
os completions <shell>generates completions foros; completions foropenshellkeep working. - The snap exposes
osthrough a Snap Store alias request, with docs covering locally built snaps that lack the alias (as withopenshell-proverin docs(snap): align prover guidance and canary with the approved command alias #4838). - The
osname is confirmed not to collide with a binary already shipped in each package channel. - Docs, man page, examples, and public skills use
os.
Alternatives Considered
- Ship
osas an additional alias and keepopenshellcanonical. Less churn, but docs would have to pick one name, and two equal names without a deprecation path tend to stay forever. - Leave it to user aliases. This is today's state; it doesn't reach scripts, CI, or sandboxes.
- A different short name (for example
osh). Less generic thanosand less likely to collide, at the cost of being less memorable.
Activity
feat(cli): keep the openshell rename notice off by default