You can upload your gcode-files from your slicer. Moonraker simulate the octoprint-upload. Just set the slicer to octoprint, enter the hostname or ip and fill in the API-Key field with something.