The flow seems to have changed a bit since these instructions were last updated. Also information on which scopes needs to be authorized was missing, which takes a bit of effort to figure and thus should be written out explicitly.
machine.deploy_type