Create a branch from main called “cms/[jira-ticket]-[feature-name]”. We don’t need to trigger an automatic pipeline here, so the name is just a convention.
From the root of the project, open a terminal and navigate to the /web folder (cd web),
Run the command sanity login. Follow the prompts in your terminal. You may be directed to open a URL in your browser to complete the login process.
Run npm run dev to start the local development of the Sanity application. The app will fetch data from the project dataset.
Do your magic! 🪄
Once finished, run npm run deploy:client to deploy the updated build on the live URL. This command will run Sanity’s deploy command.
Open a PR to merge your changes into main.
Additional info
sanity --help shows a list of the Sanity CLI options.