---
name: "miplug"
section: "1"
platform: "linux"
package: "miio-tools"
version: "0.5.0.1-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/miplug"
---

# miplug(1)

A tool to command Xiaomi Smart Plug.

## NAME

miplug - A tool to command Xiaomi Smart Plug.

## SYNOPSIS

**miplug** \[*OPTIONS*\] *COMMAND* \[*ARGS*\]...

## DESCRIPTION

-

  A tool to command Xiaomi Smart Plug.

## OPTIONS

**--ip** TEXT

**--token** TEXT

**-d**, **--debug**

- **--help**

  Show this message and exit.

### Commands:

- discover

  Search for plugs in the network.

- off

  Power off.

- on

  Power on.

- raw-command

  Run a raw command.

- status

  Returns the state information.
