In this article, you will learn how to add a web part to a page using PnP Core CSOM library on SharePoint online sites.
SharePoint 2013 Administration Essentials