{"schemaVersion":1,"id":"microsoft-winapp-cli","name":"WinApp CLI — build, UI automation and packaging","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/microsoft-winapp-cli/","officialUrl":"https://github.com/microsoft/WinAppCli","isCatalog":false,"description":"Official CLI and examples for Windows development: project creation and launch, Windows API and WinUI control lookup, package identity, MSIX, and signing. winapp ui commands give an agent verifiable interface states through Windows UI Automation.","tasks":["Build and run an app from the terminal through an edit — diagnose — check cycle.","Find an API from actual metadata or a WinUI control example.","Test elements, values, navigation, and dialogs in a Windows app.","Use official WPF, WinUI, .NET, Win32, and other CLI integration examples.","Build and sign MSIX."],"categoryIds":["apps","quality","infrastructure","software"],"subcategoryIds":["apps.windows","apps.winui","quality.testing","infrastructure.cicd","software.cli"],"tags":["MSIX","CLI","WinUI"],"aliases":[],"platforms":["Windows"],"stack":["WinUI / XAML"],"compatibility":null,"pricing":"free","freeUsage":"The CLI and examples are free and open source.","paidUsage":null,"license":"MIT.","selectionGuide":{"purpose":"Build and run an app from the terminal through an edit — diagnose — check cycle.","chooseWhen":["Build and run an app from the terminal through an edit — diagnose — check cycle.","Find an API from actual metadata or a WinUI control example.","Test elements, values, navigation, and dialogs in a Windows app."],"considerInstead":[],"requirements":["An unlocked interactive desktop is required for real-input commands; touch/pen require a target."],"limitations":["Access terms: The CLI and examples are free and open source. Commercial signing services, certificates, and app publication have their own terms.","Terms of use: MIT.","UI checks do not replace visual assessment of clipping, positioning, and themes.","Windows Sandbox has separate requirements.","UIA patterns and real OS input have different requirements; screenshots are not guaranteed in every headless workflow.","If the target moves between resolve and input, a targetMoved error may occur."],"faq":[{"question":"What can you use for free in WinApp CLI — build, UI automation and packaging?","answer":"The CLI and examples are free and open source."},{"question":"What are the access terms for WinApp CLI — build, UI automation and packaging?","answer":"The CLI and examples are free and open source. Commercial signing services, certificates, and app publication have their own terms."},{"question":"What terms of use matter for WinApp CLI — build, UI automation and packaging?","answer":"MIT."},{"question":"Which environment can you use WinApp CLI — build, UI automation and packaging in?","answer":"Tech stack: WinUI / XAML. Environment: Windows."},{"question":"How do you get started with WinApp CLI — build, UI automation and packaging?","answer":"Check the workflow against the released CLI version and build the project. Run the application and perform the required action through its available controls. Compare automated states with the visual appearance and investigate diagnostics."},{"question":"What should you consider when choosing WinApp CLI — build, UI automation and packaging?","answer":"Public Preview; main may differ from the released version. UI Automation depends on accessible controls and stable AutomationId values; input actions require an unlocked interactive desktop."},{"question":"Which WinApp UI commands suit CI, and which require an unlocked desktop?","answer":"UIA pattern operations inspect/search/get/set value/invoke are intended for headless or locked-desktop workflows. click/hover/drag and send-input/send-keys send real OS input and require an unlocked interactive desktop and a foreground target; otherwise no_interactive_desktop may occur. For CI, the documentation recommends patterns. Screenshots and some capture operations may also require an interactive session."}],"related":[],"sources":["https://github.com/microsoft/WinAppCli/blob/main/README.md","https://github.com/microsoft/WinAppCli/blob/main/docs/ui-automation.md","https://github.com/microsoft/WinAppCli/blob/main/LICENSE","https://github.com/microsoft/win-dev-skills/blob/main/README.md","https://developers.openai.com/codex/windows","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/README.md","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/docs/ui-automation.md","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A Windows project and one change to build and test.","The appropriate CLI version and an interactive environment for UI Automation."],"steps":["Check the workflow against the released CLI version and build the project.","Run the application and perform the required action through its available controls.","Compare automated states with the visual appearance and investigate diagnostics."],"checks":["Build and launch are confirmed; controls have stable AutomationId values for the chosen workflow.","An unlocked desktop is available for actions; UI Automation is supplemented by visual checks."],"goal":"Example workflow with WinApp CLI — build, UI automation and packaging: Build and run an app from the terminal through an edit — diagnose — check cycle."},"sources":["https://github.com/microsoft/WinAppCli/blob/main/README.md","https://github.com/microsoft/WinAppCli/blob/main/docs/ui-automation.md","https://github.com/microsoft/WinAppCli/blob/main/LICENSE","https://github.com/microsoft/win-dev-skills/blob/main/README.md","https://developers.openai.com/codex/windows","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/README.md","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/docs/ui-automation.md","https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/LICENSE"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Windows development CLI","kind":"tool","pricingNote":"The CLI and examples are free and open source. Commercial signing services, certificates, and app publication have their own terms.","notes":"Public Preview; main may differ from the released version. UI Automation depends on accessible controls and stable AutomationId values; input actions need an unlocked interactive desktop. UI checks do not replace visual assessment of clipping, layout, and themes. Windows Sandbox has separate requirements.","labeledSources":[{"url":"https://github.com/microsoft/WinAppCli/blob/main/README.md","label":"Documentation"},{"url":"https://github.com/microsoft/WinAppCli/blob/main/docs/ui-automation.md","label":"Documentation"},{"url":"https://github.com/microsoft/WinAppCli/blob/main/LICENSE","label":"License"},{"url":"https://github.com/microsoft/win-dev-skills/blob/main/README.md","label":"Documentation"},{"url":"https://developers.openai.com/codex/windows","label":"Documentation"},{"url":"https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/docs/ui-automation.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/microsoft/WinAppCli/HEAD/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}