Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mw get

Last updated: 2025-10-22

Synopsis: Print the fields of one object.

Usage

mw [global flags] get --type <type> <id>
FlagDescription
--typeRequired. Type identifier that owns the object.
<id>Required positional argument representing the object identifier.

Use --format json if you prefer JSON output.

Example

Run the command from the workspace root. Use --root if you need to target another workspace.

Fetch the post-001 record as YAML:

mw --format yaml get --type Post post-001

Output:

author: user-alice
body: |
    We are excited to announce the product launch.
id: post-001
title: Launch Day
  • mw list — discover identifiers before calling get.
  • mw update — change object fields.


Generated at 2025-10-30 22:44:13 (commit: 3a1f254)