mw entity show
Last updated: 2025-10-22
Synopsis: Print the normalized schema for a given entity.
Usage
mw [global flags] entity show <entity>
No additional flags. Use --format json if you prefer JSON output, and add the global --root flag when working outside the workspace root.
Example
Show the Post entity in YAML form:
mw --root examples/full --format yaml entity show Post
Output (abridged):
name: Post
source: .../examples/full/entities/Post.yaml
identifier:
field: id
filepatterns:
- data/posts/*.yaml
fields:
title:
type: string
required: true
author:
type: User
required: true
body:
type: string
Related Commands
mw entity list— find available entities.mw config export— generate a JSON Schema from an entity definition.