You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "luganofer (via GitHub)" <gi...@apache.org> on 2025/08/12 21:52:10 UTC
[I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
luganofer opened a new issue, #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182
Hi! I’ve been using CloudMonkey with multiple profiles and noticed a usability issue with the current set profile command.
Right now, set profile <name> serves both to create a new profile and to switch to an existing profile:
* When creating a profile, you run:
set profile <new_profile_name>
set url <api_url>
set apikey <api_key>
set secretkey <secret_key>
[optional: set username / set domain]
* When switching between profiles, you also run:
set profile <existing_profile_name>
The problem is that if you mistype the profile name when trying to switch, CloudMonkey silently creates a new empty profile instead of switching, which can be confusing and lead to misconfiguration.
Proposal:
Add a dedicated command for switching between existing profiles — one that does not create new profiles if the name doesn’t match.
For example:
switch profile <profile_name>
or
use profile <profile_name>
This would:
* Prevent accidental creation of unwanted profiles.
* Make the intent clearer by separating profile creation from profile switching.
* Improve usability when working with multiple CloudStack connections.
The current set profile could remain for profile creation/configuration to preserve backward compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-3227902025
@DaanHoogland @luganofer what do you expect `create profile` to do? Just create a new profile and not switch to it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "yadvr (via GitHub)" <gi...@apache.org>.
yadvr commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-5727899901
fwiw, the way cmk designed was for users to use tab-tab, as in "set profile <tab><tab>" which lists the profile which they tab+select an existing profile or create a new one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "borisstoyanov (via GitHub)" <gi...@apache.org>.
borisstoyanov closed issue #182: Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation)
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-3182434184
@luganofer , there is tab-completion for set profile, listing all existing profiles. This would also prevent you from mis-typing. Would that be enough?
And say we add `switch profile` , would we still allow switching using `set profile <name>`, or would you expect that to error out if the name exists?
If we want to avoid all misunderstandings we should deprecate `set profile <name>` and create both `switch` and `create` commands.
I’ve been using cmk for very long and must admit I bumped into to this once, over the years. That does not give me a big feel of urgency to fix it. (not completely against it but just wonder if it has enough value to change it)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-3227968631
> [@DaanHoogland](https://github.com/DaanHoogland) [@luganofer](https://github.com/luganofer) what do you expect `create profile` to do? Just create a new profile and not switch to it? My opinion is to keep it simple and just add a `switch` command.
so switch is set but do not create, right? sounds good enough to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-3233290499
@luganofer can you please check #192? You can get the binary with changes in the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Feature request: Add dedicated command to switch between existing profiles (avoid accidental creation) [cloudstack-cloudmonkey]
Posted by "luganofer (via GitHub)" <gi...@apache.org>.
luganofer commented on issue #182:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/182#issuecomment-3183908617
> [@luganofer](https://github.com/luganofer) , there is tab-completion for set profile, listing all existing profiles. This would also prevent you from mis-typing. Would that be enough?
>
> And say we add `switch profile` , would we still allow switching using `set profile <name>`, or would you expect that to error out if the name exists?
>
> If we want to avoid all misunderstandings we should deprecate `set profile <name>` and create both `switch` and `create` commands.
>
> I’ve been using cmk for very long and must admit I bumped into to this once, over the years. That does not give me a big feel of urgency to fix it. (not completely against it but just wonder if it has enough value to change it)
Hi @DaanHoogland ,
I completely agree with you.
It's not urgent, it's just an idea for improvement.
The tab autocomplete works well and is very useful. But I think it's much better to have two different commands for creating and switching between profiles to avoid errors and confusions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org