./launcher rebuild command fails when app.yml contains a long env variable

Did you remove the line breaks? Can they be substituted with \n ?

Store the private key in a separate file and pass it in.