SmartThings virtual devices using CLI

You can create local virtual switch using CLI command

smartthings virtualdevices:create-standard --name=Name --location=LocationID --room=RoomID --local --prototype=VIRTUAL_SWITCH

or you can use also CLI command (interactive mode)

smartthings virtualdevices:create-standard --local

and CLI interactively ask name, location, room and type (prototype)

The Virtual Switch driver will be automatically loaded into the hub.

You have to use CLI version 1.4.1
You can check CLI version using command
smartthings --version

Edit May 2024: