Command Reference
This is the reference, not the place to learn ldev.
If you want to understand what ldev is for, start with:
- What is ldev
- Export and Import Resources (the flagship workflow)
- Resource Migration Pipeline (the workflow Liferay does not have)
- First Incident (a triage walkthrough)
Reference sections
- Runtime — start, stop, doctor, logs, env lifecycle
- Discovery — context, portal check, inventory, preflight, OAuth
- Data and Deploy — db sync/import, document library, deploy module/theme/all, content prune
- Resources — structures, templates, ADTs, fragments, migration
- Project and AI — project init, ai install/update/status/bootstrap
- Advanced — OSGi, worktrees, MCP, reindex, search, page-layout, theme-check
Namespace overview
Top-level entry points:
ldev --repo-root <path> ...— target another local checkout rootldev context,ldev doctorldev start,ldev stop,ldev status,ldev setupfor optional preparationldev logs,ldev logs diagnose,ldev shell
Namespaces:
ldev portal(aliasldev liferay) — check, auth, config, inventory, audit, content, page-layout, search, theme-check, reindexldev resource— read, export, import, migrationldev db— database and Document Library workflowsldev deploy— build and runtime deploy flowsldev env— advanced environment operationsldev osgi— Gogo Shell wrappers and runtime diagnosticsldev worktree— isolated branch worktrees with their own runtime stateldev oauth— OAuth2 app installationldev mcp— local Liferay MCP server inspectionldev project— project scaffoldldev ai— managed AI assets and skills
Connection overrides
ldev portal and ldev resource accept Liferay connection overrides for remote execution:
bash
ldev portal [options] <subcommand>
ldev resource [options] <subcommand>
--liferay-url <url>
--liferay-client-id <clientId>
--liferay-client-secret <clientSecret>
--liferay-client-secret-env <envVar>
--liferay-scope-aliases <aliases>
--liferay-timeout-seconds <seconds>See Configuration for precedence and secret handling.
Use ldev <namespace> --help for the full options of your installed version.