Fatal: The 'prepare' command must be used on the source tree

Following the error message hint, I’ve also tested sfdk prepare %{sourceDir}, but that returns Fatal: The command needs to be used from the top of a build tree. See the 'build-init' command..