pnp / sp-site-designs-studio

Code for the Site Design Studio solution
MIT License
56 stars 17 forks source link

Add Office 365 CLI Setup script #10

Open garrytrinder opened 4 years ago

garrytrinder commented 4 years ago

Provide an option for users on non Windows systems to be able to setup the Studio in their tenant.

garrytrinder commented 4 years ago

Happy to help out with this one 👍🏻

ypcode commented 4 years ago

Hello Garry,

I gave it a short try a few weeks ago... but I am definitely not as proficient in bash as in PowerShell. I will push what I already have done. A helping help would indeed be really appreciated :)

Kind regards Yannick

ypcode commented 4 years ago

I will do even better and provide a working PowerShell script using the CLI, then it would be awesome if you can give the translation in bash :)

garrytrinder commented 4 years ago

Sounds like a deal 👍🏻😁

garrytrinder commented 4 years ago

So I was thinking, we could create a script using CLI commands or instead we could look to add a specialist command in the CLI for the setup of this project. Thoughts?

ypcode commented 4 years ago

Hi @garrytrinder, I think the existing commands should be sufficient. On the other hand, dedicated commands would make it more "promoted" but I don't want to ask you too much effort on this :)

What do you think? I will work on the PowerShell script tomorrow.

garrytrinder commented 4 years ago

Looking at the script you have for PowerShell, looks like we need a script to replicate the following

Does that cover it all?

ypcode commented 4 years ago

I think that's it. Take care that it should set the permissions on the preview image library to "everyone except externals" I don't know if there an option in the CLI for that?

garrytrinder commented 4 years ago

Thanks for clarifying.

If we are missing commands then we can can build them 👍🏻

ypcode commented 4 years ago

Hi @garrytrinder,

I am writing, as promised, the PowerShell version of the o365 CLI setup script and Indeed some features might be missing (or I am just not sure what command to use if there is one...

The "missing" features would be:

Your wisdom would be really appreciated here :)

ypcode commented 4 years ago

Hi @garrytrinder , I pushed a draft of the PS1 setup script using the CLI It is here on the dev branch: https://github.com/pnp/sp-site-designs-studio/blob/dev/setup/o365cli/setup-0365.ps1

Related to my previous comment, the are 2 missing steps so far, and it was not really tested, I pushed it only for reference so far. :)

Regards, Yannick

garrytrinder commented 4 years ago

Thanks @ypcode

Let me create some issues in the CLI repo to cover the missing commands to progress.