Some fields have names that are not valid CUE identifiers. This Commented CUE demonstrates how to export these fields using cue export -e.

data.yml
# data.yml contains a field we want to export with
# the "cue export" command's "-e" parameter

"top level field":
  a: [ 1, 2, 3 ]
TERMINAL
$ cue export -l input: data.yml -e 'input["top level field"]'
{
    "a": [
        1,
        2,
        3
    ]
}