So have a couple questions in regards to using mender-cli and the mender API with the new file transferring feature.
Question #1 - How do i properly use mender-cli to conduct a file transfer to/from a device.
Please note that I am using ‘.mender-clirc.json’
Currently for uploading to a device, i have used this full command:
mender-cli cp <device-id>:<device-download-path> <path-to-local-file> --server <server-address>
and get the error:
FAILURE: Missing X-MEN-FILE-MODE header
I have looked at all available documentation and even tried going through the actual source code, but it doesn’t mention anywhere how to add the file mode header to the command above.
To that point, I have no clue how to do the reverse command of requesting a file from remote device, to be locally downloaded, if someone would also be able to elaborate on this matter, I’d greatly appreciate it.
Do i need to login by means of a Token or something? Is using this feature of the mender API part of the Mender Open-Source model? or is it only available with a paid mender subscription?
Thanks guys, really appreciate someone taking the time to look into this, this has been driving me nuts.