The DESIGN.md CLI has four commands, run through npx with no install: lint, diff, export and spec. Together they turn the file from a passive document into something you can validate, compare and convert.

lint - validate the file

$ npx @google/design.md lint DESIGN.md

$ npx @google/design.md lint --format json DESIGN.md

Enter fullscreen mode