Docs

profile hook()

Installing

Use the profile hook command by installing the command’s package:

wp package install wp-cli/profile-command

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