5.9 Creating an Application with APEXlang
Learn how to create an application with APEXlang.
- About APEXlang
APEXlang is a new open application specification language.
Parent topic: Creating Applications
5.9.1 About APEXlang
APEXlang is a new open application specification language.
APEXlang and Generative Development
The open application specification language, APEXlang, allows for AI agent-based generative development of APEX apps. Using Codex, Claude, and other AI agents, you can perform spec-to-app, conversational, and vibe-coded app development.
Oracle distributes skills to help AI agents generate correct APEXlang syntax. Get skills from github.com/oracle/skills. You can sync skills using the built-in skills sync command in the Oracle APEX command line tool, SQLcl. SQLcl is distributed in SQL Develper and SQL Developer for VS Code.
APEXlang File Structure
.apxapplication definition files- Supporting Objects SQL scripts
- CSS and JavaScript assets
- static resources (including image files)
Diagnosing APEXlang Import Errors
During application import and instance upgrade, Oracle APEX automatically repairs many known metadata inconsistencies when the correct fix can be determined unambiguously. Mature applications, especially those copied or upgraded over many releases, may still contain legacy metadata mismatches that do not affect runtime behavior but are reported by the stricter validation performed by apex validate.
To check an application, export it in APEXlang format and use SQLcl with the /nolog option to run apex validate -input against the exported directory or zip file. In SQLcl, use spool before validating to save the validation output for review. Alternatively, export and re-import the application in App Builder, then download the validation error CSV if errors are reported.
For each error or warning, review the referenced .apx file, line number, component, and message type, and review in VS Code or your favorite editor. Then, inspect the page/component in App Builder for additional context. Fix the issue either in App Builder and re-export, or directly in the APEXlang files, then validate again. Remaining issues usually require a manual decision, such as correcting stale references, removing unused or orphaned metadata, recreating a missing component, or replacing an invalid property value with one allowed by the current metadata model. Only errors require a fix. Warnings are only for informational purposes, but do not prevent a successful import.
APEXlang Resources
- Understanding the Export and Import Process
- APEXlang in Oracle SQLcl User’s Guide
- APEXlang API Reference
- APEXlang Atlas, an interactive learning tool for APEXlang
- Using SQLcl with APEX in Oracle APEX Administration Guide
Parent topic: Creating an Application with APEXlang