Skip to content

pageslens

Offline lint, policy tests, access diffs and docs for Power Pages site configuration in source control.

pageslens reads a Power Pages site from the files in git: a download from pac pages download-code-site or pac pages download, or an unpacked solution that holds the site. It needs no Dataverse connection and no agent: the same folder gives the same output every run.

Terminal window
npx pageslens lint path/to/site

Lint

Known mistakes in table permissions, web roles, Web API settings and site settings, with stable rule ids, severities and exit codes for CI.

Test

Your own requirements, written as short sentences in a policy file: “anonymous cannot read contact”.

Diff

What a change does to who can see and change what: wider, narrower or neutral, for a pull request comment.

Align

Components left out of the solution, or different in it, before the import.

Docs

An access matrix, the Web API surface and a Mermaid diagram, as plain Markdown to commit next to the site.

CI

A GitHub Action that runs the checks, uploads them to code scanning and comments a pull request’s access changes.