Use an unquoted scalar when no escaping is needed.

Section: Strings and quoting

Plain string

yaml
yaml
message: Hello world
Explanation

Plain scalars are concise, but they can be misread when values look like booleans, dates, or special tokens.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Strings and quoting
Single-quoted string
Keep backslashes literal and avoid interpolation-like behavior.
OpenIn sheetyamlsame section
Double-quoted string
Use escapes like newline and tab in YAML strings.
OpenIn sheetyamlsame section
Literal block scalar
Preserve line breaks exactly with `|`.
OpenIn sheetyamlsame section
Folded block scalar
Wrap multi-line text into a single logical paragraph with `>`.
OpenIn sheetyamlsame section
Quote ambiguous boolean-like words
Avoid implicit booleans by quoting risky strings.
OpenIn sheetyaml1 tag match
Quote date-like values
Prevent timestamps and date-like tokens from being auto-typed.
OpenIn sheetyaml1 tag match