Use the dist-archive command by installing the command's package:

wp package install wp-cli/dist-archive-command

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

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.