"discourse: command not found" when trying to restore a backup from the command line

Now I have an issue I cant rebuild it.. how can I exit? to be able to run ./launcher rebuild app