The migrate tool can only be run from the command line (with a CLI PHP binary).