How to fix rpm-ostree error: Unknown "ex" subcommand "apply-live"

When running

rpm-ostree ex apply-live

you will see the following error message in newer versions of CoreOS:

error: Unknown "ex" subcommand "apply-live"

 

 

The new equivalent ofrpm-ostree ex apply-live is

rpm-ostree ex livefs --i-like-danger