Is there a way to upload/download custom code to/from the cloud?

Is there a way - command line or API or whatever that we can use to upload or download custom code from autopi cloud? My use case is to be able to be able to edit the custom code offline and then have them uploaded or to downloaded.