-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI support for rancher desktop #816
Comments
Overview of the first solution:
Installing the front-end clientThis is built in Go so we can compile it to a standalone executable , |
Currently supported commands
|
OperationRancher Desktop obviously can't respond to commands until the Some modal dialogs prevent the What we know so far:
|
A note on UI<->settings synchronizationCurrently when a pref is changed in the UI, we either make a note of that in a notification bar, or tell the user that a restart is needed immediately if they want to change the pref (say by changing container engines). This CLI currently circumvents that. It can disable Kubernetes, and the checkbox is unchecked, but the app is still running |
Proposed CommandsThe list in #816 (comment) was just for a working prototype, but we're throwing that away. New command-list:
By default, output is human-readable. With Other notes: For later release:
|
Shouldn't this be a variant of (After going through the whole set of commands, I'm no longer sure; maybe having a
Not really a fan of adding aliases at this point. We should have one canonical name, and stick with it. It should align closely with the name used in the UI, so users can map them without referring to documentation.
Should also support "MB" and "MiB" units to specify e.g.
I prefer I think all names should be lower-case and separate words with dashes, like
Maybe
I would say
Should be I can't think through implications for services and ports right now. I think we can postpone this; I don't expect those commands to be supported in the first release:
Why not for Windows (just a wrapper for Might be useful for creating cross-platform scripts that run commands inside the VM.
I would find
I assume it also shuts down the VM and everything, not just the window.
I think with
I assume you will create a corresponding JSON schema to map these commands to a REST API. |
[github isn't great for discussion threads. I'll elide any uncontentious parts, and update the changes in the original
Actually I'm fine with
Actually, why not? [... other name-based suggestions pulled into the main spec above]
Yes, exactly. The default distro would be
What about just
Yes. [...]
Yes, that's next. |
I don't understand. I just want |
Right, that makes sense. I was thinking of my own usage, where I typically use our default VM on macos, and ignore the |
I just realized that Windows has an |
Further commands I want to see:
So you can do something like this (syntax made up):
|
Yeah, maybe it is fine and just a personal dislike on my part. As long as we offer "MB" and "MiB" units for people who feel the same as me. 😄 Intuitively it feels wrong to use floating point for something that has indivisable base units (you cannot have fractional bytes). Just like using floating point for monetary units invariably ends with tears. |
Work on this story is being done through #1748. This is a good place to keep discussing the specs, and report large-grained progress. |
(Making feedback on the version as of May 4, 3:23 PM; sorry, I thought I committed the comment…)
Presumably, if the machine isn't running, we don't restart? It might be better to never automatically restart, and add a
Does this return an error if Kubernetes is disabled? Or does it start it (toggling the pref)? Presumably, |
More commands I would like to see:
|
Proposal: Support channel names for |
I'm going to close this issue now, as it mostly serves as a collection of things we eventually want to expose via the CLI. The 1.2 release includes the work from #1748, and the next release will include the issues tracked by #1896. The will be additional work coming after that, but there is no concrete action item associated with this issue any more. |
It could be nice to control rancher desktop through cli for administrators and automation.
Actions you can do through the desktop app also reflects the cli commands:
This could be done by
rd
alias or something else.The text was updated successfully, but these errors were encountered: