https://developer.wordpress.org/cli/commands/menu/
root@wp:/var/www/html# wp menu list --allow-root
+---------+----------------+----------------+-----------+-------+
| term_id | name | slug | locations | count |
+---------+----------------+----------------+-----------+-------+
| 2 | Menu principal | menu-principal | avia | 29 |
+---------+----------------+----------------+-----------+-------+
root@wp:/var/www/html# wp menu item list menu-principal --allow-root --format=yaml
---
-
db_id: 586
type: custom
title: Nuestro Centro
link: ""
position: 1
-
db_id: 51
type: post_type
title: Inicio
link: http://www.cpilosenlaces.com/
position: 2
-
db_id: 642
type: post_type
title: Qué hacemos
link: http://www.cpilosenlaces.com/nuestro-centro/que-hacemos/
position: 3
-
db_id: 588
type: post_type
title: Estructura organizativa
link: http://www.cpilosenlaces.com/nuestro-centro/estructura-organizativa/
position: 4
-
db_id: 678
type: post_type
title: Departamentos Estratégicos
link: http://www.cpilosenlaces.com/nuestro-centro/departamentos-estrategicos/
position: 5
-
db_id: 595
type: post_type
title: Normas de convivencia
link: http://www.cpilosenlaces.com/nuestro-centro/normas-de-convivencia/
position: 6
-
db_id: 443
type: custom
title: Secretaría
link: ""
position: 7
...