Discovery Commands
ldev context
Resolve repo, runtime, and Liferay context as one snapshot.
bash
ldev context --jsonldev portal check
Check OAuth and basic API reachability.
bash
ldev portal check
ldev portal check --jsonReal text-mode example:
text
HEALTH_OK
baseUrl=http://localhost:8081
checkedPath=/o/headless-admin-user/v1.0/my-user-account
status=200
tokenType=Bearer
expiresIn=600ldev portal inventory sites
List accessible sites.
bash
ldev portal inventory sites
ldev portal inventory sites --jsonTypical default output includes /guest and /global.
ldev portal inventory pages
List pages in a site hierarchy.
bash
ldev portal inventory pages --site /globalldev portal inventory page
Inspect a specific page or route.
bash
ldev portal inventory page --url /home --json
ldev portal inventory page --site /global --friendly-url /home --jsonOther inventory commands
bash
ldev portal inventory structures --site /global --json
ldev portal inventory templates --site /global --jsonldev oauth install
Create or refresh the OAuth app used by ldev.
bash
ldev oauth install --write-envUse this once after the portal is ready so API-backed commands can authenticate. The local credentials are written to .liferay-cli.local.yml.
See OAuth for the full model.