If you run this command in your Command Prompt:
%comspec% /c set LANG=en_US.UTF-8 && kdeconnect-cli --list-devices > %TEMP%test.txt && type %TEMP%test.txt
And you receive this error:
'kdeconnect-cli' is not recognized as an internal or external command, operable program or batch file
Follow these troubleshooting steps:
Step 1: Check App Execution Aliases #
Windows Store apps use execution aliases that need to be enabled.
- Open Settings
- Navigate to Apps โ Advanced app settings โ App execution aliases
- Scroll down and find KDE Connect
- Ensure the toggle is ON (enabled)

Step 2: Verify KDE Connect CLI File Exists #
Check if the kdeconnect-cli.exe file is present in the WindowsApps folder.
- Open Command Prompt or PowerShell
- Run the following command:
dir "%LOCALAPPDATA%\Microsoft\WindowsApps\kdeconnect-cli.exe"
- If the file is found, proceed to Step 3
- If the file is not found, you may need to reinstall KDE Connect from the Microsoft Store

Step 3: Add WindowsApps to Environment Variables #
Ensure the WindowsApps folder is added to your system PATH.
- Press Win + R, type
sysdm.cpl, and press Enter
- Click the Advanced tab
- Click the Environment Variables button
- Under User variables for \
, find and select Path - Click Edit
- Check if the following path already exists:
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
- If it doesn’t exist, click New and add the path
- Click OK on all dialogs to save changes

Step 4: Restart Your Computer #
A system restart is required for PATH changes to take effect.
- Save all your work
- Restart your computer
Step 5: Verify the Fix #
After restarting, open a new Command Prompt window and run the test command again:
%comspec% /c set LANG=en_US.UTF-8 && kdeconnect-cli --list-devices > %TEMP%\test.txt && type %TEMP%\test.txt
If successful, you should see a list of your connected KDE Connect devices (or an empty list if no devices are connected).
Still Not Working? #
If you’ve followed all steps and the command still doesn’t work, try reinstalling KDE Connect:
Uninstall the Windows Store Version
- Click the Start button or press the Windows key
- Type KDE Connect in the search bar
- Right-click on KDE Connect in the search results
- Select Uninstall
- Confirm the uninstallation
Install the Desktop Version
- Go to kdeconnect.kde.org/download.html
- Download the Windows installer
- Run the installer and follow the installation steps
Add KDE Connect to Environment Variables
After installing the desktop version, you need to add it to your PATH:
- Press Win + R, type
sysdm.cpl, and press Enter - Click the Advanced tab
- Click the Environment Variables button
- Under User variables for \
, find and select Path - Click Edit
- Click New
-
Add the path:
C:\Program Files\KDE Connect\bin
8. Click OK on all dialogs to save changes
9. Restart your computer again
Verify the Fix
After restarting, open a new Command Prompt window and run the test command again:
%comspec% /c set LANG=en_US.UTF-8 && kdeconnect-cli --list-devices > %TEMP%\test.txt && type %TEMP%\test.txt
If successful, you should see a list of your connected KDE Connect devices (or an empty list if no devices are connected).
