Creating an app with Codex CLI

To get started with Codex CLI for Uno Platform development:

  1. Create a new project using the Uno Platform Live Wizard, or dotnet new

    dotnet new unoapp --tfm net10.0 -o MyNewApp
    
  2. Change your directory to be in the folder containing the new project (e.g., cd MyNewApp)

  3. Run the following command, which will launch the Uno Studio app that will allow you to sign in or create an account and get access to the Uno App MCP.

    dnx -y uno.devserver login
    
  4. If running on linux or macos, run the following:

    export NUGET_PACKAGES=`pwd`/.nuget
    
  5. Open Codex in the folder of the app

    codex --sandbox workspace-write --ask-for-approval on-request 
    

Next Steps

You can start developing with Codex.