Import and Export config settings #3858
Replies: 2 comments 5 replies
-
Very nice @arjunumenon, that sounds like something I would use! Also: @Adam-it started a conversation once about contexts. Would this fit in with that discussion as well? |
Beta Was this translation helpful? Give feedback.
-
That is a correct assumption @Adam-it and it is not exactly same @martinlingstuyl . Like Adam mentioned, his use case is to have a bucket (Using Adam's language 😎) in the same environment (Where we are running CLI) with a configuration setup for the sites / tenant which the user frequently uses. With that user may not need to re-enter the option values each and every time. You can correct me Adam If I have understood it incorrectly.
I may have to gently disagree here with you totally based on my usage approach. Imagine a situation were you are an IT Pro who is developing script for a different client / customer and you would have dedicated machine for you which is meant to run the scripts against the client tenant. Though it is a different tenant, IT Pro would love to have his personalized config settings in that running environment as well (though he may be running against a different tenant, his personal settings would be same). Again that is the way which foresee this use case. So I feel, since we already give a personalized config settings, IT Pro would love to have that moved to a different setup as well.
For people who uses CLI and knows the running of the same, it may be easy to reconfigure it in a different environment. But for end users, I have feeling it might be a bit overwhelming to find the folder and copy and paste the
So in my opinion, if we give it in guidance, it will be super complicated. And especially for copying the
This is something which we can discuss on can take a decision, whether effort to build the command will quantify the usage and outcome. As a person, I would love to. But again collectively if we decide that it is not worth it, I would be totally ok with that too 🙂 |
Beta Was this translation helpful? Give feedback.
-
I was setting up CLI in a fresh box where I would be executing commands. Over there, I would love to have all the cli config settings which I have it in current machine in place. In this case, If I want to replicate the same in the new box,
With this there are chances that I might miss some of my most loved settings.
So for tackling this, I was wondering to have an import and export functionality for my CLI Config Settings.
Export Settings
My idea is to have something like
m365 cli config export
. This would take my current settings file and will add in my OneDrive.Import Settings
Once we execute something like
m365 cli config import
, this will download the file from OneDrive and will paste in our cli config folder.One pre-requisite over here is to login to the same tenant when you are importing and exporting.
What do you think about this? Do you think it is worth the effort? Need your opinions and suggestions please.
Beta Was this translation helpful? Give feedback.
All reactions