Naming convention for site collection commands
See original GitHub issueWhat do you think would be the logical naming convention for working with site collections in the CLI?
Today, we have classic and modern sites. While they’re both site collections, you work with them differently (different API, parameters and shape). In PnP PowerShell there are two sets of cmdlets: PnPTenantSite for classic sites and PnPSite for modern sites. What would be the logical naming convention to use in the CLI?
spo site <action>for modern andspo site classic <action>for classic sites (since modern sites are likely the way forward it would be better to not include modern in the command name, and instead explicitly denote classic sites)spo modernsite <action>andspo classicsite <action>spo site modern <action>andspo site classic <action>to explicitly denote type of site you want to be working withspo site <action> --type Modern|Classicfor both classic and modern. Distinction between classic in modern is done inside each command. This would introduce higher complexity of all commands because they would have to handle two types of sites, including validating required options which are different depending on the type of site you’re working with. Preferably we shouldn’t choose this approach but maybe you have good arguments for doing it.
Any other naming conventions? Which one has your preference and why? @VelinGeorgiev @estruyf @andrewconnell @wictorwilen
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Naming Conventions for Collections / Views - ArangoDB
View names must always start with a letter. User-defined collection names must always start with a letter. System collection names must start with...
Read more >Naming conventions | Cloud APIs
Naming conventions · Product names · Service names · Package names · Collection IDs · Interface names · Method names · Message names...
Read more >Naming Conventions - PowerShell Practice and Style - GitBook
Naming Conventions · Use the full name of each command. · Use full parameter names. · Use full, explicit paths when possible. ·...
Read more >SharePoint Naming Conventions Best Practices You Should ...
This SharePoint tutorial explains about sharepoint naming conventions, how to give proper names for documents or how to follow proper naming ...
Read more >Naming conventions - IBM
Names with single-byte characters. The following naming rules apply when saving objects in the database. Names for queries, forms, procedures, tables, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Correct… I think to go in line with what most CLIs do I’d expect to see something more like option 4:
I vote for #1 as well