How to use TPLink Kasa Control Command Line for Microsoft Store

Modified on Sat, 28 Aug 2021 at 02:37 PM

The command-line version of the Kasa Control is TPLinkCmd.exe, this can be added to scripts and shortcuts to control your devices.


you must give a login command before executing a command, the credentials are cached for 5 minutes so for most scripts this is only required once.

TPLinkCmd -login -username "" -password "password"


Add the following at the end of the script, this erases the credentials from the cache.

TPLinkCmd -logoff

Get Device List

This gives a list of the names to use in the commands

TPLinkCmd -devicelist


TPLinkCmd -device "BEDROOM" -on
TPLinkCmd -device "BEDROOM" -off
TPLinkCmd -device "BEDROOM" -toggle
TPLinkCmd -device "BEDROOM" -status
TPLinkCmd -device "BEDROOM" -brightness 62

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article