Hi Ben — I did not cover the non-GUI stuff, but Rancher is entirely API driven and the UI is simply an ember application that fronts that API.
The documentation is still in progress for Rancher 2.0 so it may be difficult to find the exact calls you’re looking for, but one way you can find the calls / parameters you want is to execute it in the UI and look at the request in the Network tab in your browser.
It’s not exactly what you were looking for by wanting everything in a text file, but a small series of commands could get you to that deployment. If you’re looking for a single file to describe your entire Kubernetes app, you may want to look into Helm https://github.com/helm/helm