Docs

admin()

Installing

Use the admin command by installing the command’s package:

wp package install wp-cli/admin-command

Once the package is successfully installed, the admin command will appear in the list of available commands.