portal/ directory is your authoring workspace. Remote operations act on either the working definition or an immutable portal version.
Create or clone a project
Create a new portal project:--id.
Install and pull
portal/ and updates the generated synchronization state in .portal-sync/. Do not edit .portal-sync/.
Preview locally
http://localhost:5173. Use this command for the supported preview.
Edit and validate
Edit only the required files underportal/. Keep each file’s $schema value and use its file name as the resource slug.
Update the working definition
Pull again if the remote definition may have changed, then push the reviewed local changes:Release the definition
Understand the release lifecycle
Learn how working definitions, versions, and activation remain separate.