SharePoint Framework extensions extend the user experience toward the SharePoint Online Modern Framework List and Library to render custom components.
- Application level customizer – basically used to render custom component to defined placeholder example Top Navigation, Footer, etc.
- Fields level customizer – basically used to render the field level modification within views.
- List View Command Set – basically used to render a new action at the list view level.
- md Extension
Navigate to the created directory.
- cd Extension
- yo@microsoft/sharepoint

- Enter the name of Solution: Metadata
- Select “SharePoint Online” baseline package you want to target for your component(s).
- Select “Use the current folder” place the files.
- Select “Extensions” to the type of client-side component.
- Select “ListView Command Set” as a type of client-side extension
- Enter command Set name: Metadata

Yeomen will take a couple of minutes to install required dependencies and scaffolding the SPFX project. Finally, you will get the below “congratulations “ message.
- Type Code .
It will open the project into an open source IDE, i.e., Visual Studio Code (condition - Visual Studio Code needs to be installed). Navigate to SharePoint Folder Structure -> assets -> element.xml.
Note
If you want to use the same custom SPFX extension to both list and library, copy and paste the same custom action and section one RegistrationId assign to 101.
Step 5
Step 6 - Run Gulp Build
It will build a solution and create two new folders - Lib and Temp
Step 7 - Run Gulp Bundle –ship
It will bundle all JS and CSS files and make it ready to bundle files in CDN. It creates a dist folder.
Step 7 - Run Gulp Package-solution –ship
It will create a production ready .sppkg file.
Step 8 - Package Deployment at Site Collection Level
Click to deploy the solution.
Step 9
Navigate to Site Content.
Step 10

Step 11Note
Wait for a couple of seconds to activate the solution.
Step 12
Hope you have learned something new in this article. Stay tuned for more related articles to get more insights and learning.















Amul KumarPosted May 18, 2020, 9:01 AM
Hi, Is there a way we can update metadata for Library in SPFX extension?
SubratPosted Feb 27, 2020, 5:18 AM
Hi , how to add the command bad after the Flow ? my new button its coming after Export to excel button. Any help ?
Yogesh JagtapPosted Dec 5, 2019, 3:58 AM
How I can add multilevel Commands like : Command One have multiple child commands?