Dropbox
The robomotion dropbox CLI manages files and folders in Dropbox. It supports uploading, downloading, copying, moving, deleting files; creating folders; searching by name/content; getting file metadata; and generating shareable links.
When to use
- Upload or download files between local filesystem and Dropbox
- Copy, move, or delete files and folders in Dropbox
- Search for files by name or content
- Create shareable links and get file metadata/stats
Prerequisites
robomotionCLI installed- Package installed:
robomotion install dropbox - Dropbox access token configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install dropbox - Connect with session:
robomotion dropbox connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion dropbox upload_file --client-id "<client-id>" --file-path <local> --dropbox-path <remote> --session-id "<session-id>" --output json - Disconnect when done:
robomotion dropbox disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion dropbox connect --session --output jsonConnect to Dropbox using an access token and return a client ID for subsequent operationsrobomotion dropbox copy_file --client-id --source-path --destination-path --session-id "<session-id>" --output jsonCopy a file or folder from one location to another in Dropboxrobomotion dropbox create_folder --client-id --dropbox-path --session-id "<session-id>" --output jsonCreate a new folder at the specified path in Dropboxrobomotion dropbox delete_file --client-id --dropbox-path --session-id "<session-id>" --output jsonDelete a file or folder at the specified path in Dropboxrobomotion dropbox disconnect --client-id --session-id "<session-id>" --output jsonDisconnect from Dropbox and release the client connectionrobomotion dropbox download_file --client-id --dropbox-path --local-path --session-id "<session-id>" --output jsonDownload a file from Dropbox to the local filesystemrobomotion dropbox get_shareable_link --client-id --dropbox-path --session-id "<session-id>" --output jsonCreate a shareable link for a file or folder in Dropboxrobomotion dropbox move_file --client-id --source-path --destination-path --session-id "<session-id>" --output jsonMove a file or folder from one location to another in Dropboxrobomotion dropbox file_stat --client-id --dropbox-path --session-id "<session-id>" --output jsonGet metadata and statistics for a file or folder in Dropboxrobomotion dropbox list_files --client-id --dropbox-path --session-id "<session-id>" --output jsonList all files and folders in a Dropbox directoryrobomotion dropbox search --client-id --query --path --session-id "<session-id>" --output jsonSearch for files and folders in Dropbox by name or contentrobomotion dropbox upload_file --client-id --dropbox-path --file-path --session-id "<session-id>" --output jsonUpload a file from the local filesystem to Dropbox
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)