Trying to understand how the workflow happens when i connect to Octoprint and click print from within the slicer. Is it like Octoprint itself where it is sending commands one line at a time or is it uploading to Octorprint and just monitoring from there or something. I want to turn off my laptop after I click print via the slicer.
No it's not sending the file line by line, it slices the file in Cura and then uploads the gcode file to OctoPrint like you were uploading it directly in the web interface. I use this all the time with the option to auto start the print. It has a couple of other features, like auto powering on your printer if using one of the supported power plugins.