rmapi is a Go app that allows you to acces the ReMarkable Cloud API programmatically.
You can interact with the different API endpoints through a shell. However, you can run the command non-interactively. This may come in handy to script certian workflows such as taking automatic backups or upload documents automatically.
Tutorial on how to directly print to your reMarkable on Mac with rMAPI
Install and build the project:
go get -u github.com/juruen/rmapi
You can download an already built version for either Linux or OSX from releases.
- list files and directories
- move around directories
- download a specific file
- download a directory and all its files and subdiretores recursively
- create a directory
- delete a file or a directory
- move/rename a file or a directory
- upload a specific file
- live syncs
- autocomplete
- globbing
- upload a directory and all its files and subdirectories recursively
Start the shell by running rmapi
Use ls to list the contents of the current directory. Entries are listed with [d] if they
are directories, and [f] if they are files.
Use cd to change the current directory to any other directory in the hiearchy.
Use put path_to_local_file to upload a file to the current dirctory.
You can also specify the destination directory:
put book.pdf /books
Use get path_to_file to download a file from the cloud to your local computer.
Use mget path_to_dir to recursively download all the files in that directory.
E.g: download all the files
mget .
Use mkdir path_to_new_dir to create a new directory
Use rm directory_or_file to remove. If it's directory, it needs to be empty in order to be deleted.
Use mv source destination to move or rename a file or directory.
Add the commands you want to execute to the arguments of the binary.
E.g: simple script to download all files from the cloud to your local machine
$ rmapi mget .