Create a Scoped App with Full Dropbox access from Dropbox App Console.
Go to permissions and enable:
files.metadata.write
files.content.write
files.content.read
Go to settings and copy App key & App Secret then insert them to the AUTHCONFIG.json file located in the config folder.
Open a terminal window located at source and type npm install (You must have Node.js installed, if you don't install it first.)
Now everything is ready to go.
Open a terminal window and type node oauth2. This will redirect you to Dropbox. Authorize the app then return to the terminal window.
Close the terminal window(or CTRL+C) and type node authtoken. Authentication is complete! Use node add to add roms to ROMCONFIG.json file. (NOTE: The roms that you use with melonDS must be located in ./roms folder.)
node upload: Upload local melonDS save file to Delta Dropbox Folder.
node download: Download Delta save from Dropbox and replace it with local melonDS save.
node add: Add roms to ROMCONFIG.json