Back to Uno

Creating an app with Codex CLI

doc/articles/create-an-app-ai-codex.md

6.6-release-branch-cut1016 B
Original Source

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

    bash
    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.

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

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

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

Next Steps

You can start developing with Codex.