Goal: get comfortable moving Sitecore items in and out of source control from the command line. If you're used to git-only workflows, SCS is the missing piece that makes Sitecore content items behave like versioned code.
The serialisation workflowLink to this section
Step 1: Log in
Authenticate against your Sitecore instance from your project's PowerShell terminal:
ps1dotnet sitecore login --authority https://id.yoursite.localhost/ --cm https://cm.yoursite.localhost --allow-write trueStep 2: Pull items
Pull existing Sitecore items into your local repo so you have a baseline to work against:
ps1dotnet sitecore ser pullStep 3: Push your changes
When you've made template or content structure changes in Sitecore and need them committed to git, push your local serialized items back up:
ps1dotnet sitecore ser pushStep 4: Validate before committing
Check your serialization config is sound before you commit. Add
--fixto auto-resolve common issues:ps1dotnet sitecore ser validate dotnet sitecore ser validate --fix
Stay in sync while you workLink to this section
While actively working, run dotnet sitecore ser watch to auto-sync item changes as you make them in Sitecore, so you don't forget to pull before ending your session.
dotnet sitecore ser watchIt's also worth running the content tree's 'Broken Links' check (right-click context menu) after a pull/push cycle, to catch anything serialization missed.