Resource ops as files
Export and import structures, templates, ADTs and fragments. Liferay only lets you do this through the UI — ldev makes it scriptable.
A CLI for the Liferay operations that today only live in the admin UI — import/export, structure migration, environment bootstrap, isolated worktrees, and an MCP server for AI agents.
npm i -g @mordonezdev/ldevldev portal inventory sites --json
ldev portal inventory pages --site /global --json
ldev portal inventory page --url /home --jsonConsolidated portal context — sites, pages, structures and templates — in single structured calls. For humans, scripts and agents.
ldev resource export-structures --all-sites
ldev resource import-structures --check-only
ldev resource import-structures --applyStructures, templates, ADTs and fragments out of the UI and into Git. Preview with --check-only, then apply.
ldev resource migration-init --site /global --structure STR_ARTICLE
ldev resource migration-pipeline --migration-file STR_ARTICLE.migration.json --check-only --migration-dry-run
ldev resource migration-pipeline --migration-file STR_ARTICLE.migration.jsonPlan, validate and run a structure migration with article-level mapping. The workflow Liferay does not give you.
JSON outputs, project bootstrap and an MCP server with 18 tools — so an agent can run the same workflows you run, without a custom integration. Start with ldev ai install --target ..