Discovery
Discovery means understanding a Liferay system before you change it.
With ldev, discovery does not depend on the UI.
Portal discovery
bash
ldev portal inventory sites --json
ldev portal inventory pages --site /global --json
ldev portal inventory page --url /home --jsonThese commands tell you:
- what sites exist
- how pages are arranged
- what route maps to a specific page
Runtime discovery
bash
ldev context --json
ldev status --json
ldev doctor --jsonThese commands tell you:
- which repo and runtime
ldevresolved - whether services are healthy
- whether the environment is ready for portal operations
Why discovery comes first
Most maintenance mistakes happen because someone changed the system before they understood it.
Use discovery first so you know:
- what environment you are targeting
- what portal object you are looking at
- whether the problem is portal, runtime, data, or OSGi related