dotnet sitecore cloud login

Do as instructed to log in, authorize your device and all this connectivity information is stored in the .sitecore/user.json file.
Connect to the local environment
dotnet sitecore connect --ref xmcloud --cm https://xmcloudcm.localhost --allow-write true -n local
To pull serialized items from the remote XM Cloud environment
dotnet sitecore ser pull -n "local"

To push the serialized items into your locally running XM instance
dotnet sitecore ser push -n "local"
For deep dive into CLI commands, check out CLI commands.
Leave a reply to Setting Up Local XM Cloud Development Environment: A Step-by-Step Guide – Sitecore Practice Cancel reply