Skip to content

DEV-2772: Add direct file transfer support#84

Merged
piotrbulinski merged 2 commits into
mainfrom
add-file-transfer-support
May 6, 2026
Merged

DEV-2772: Add direct file transfer support#84
piotrbulinski merged 2 commits into
mainfrom
add-file-transfer-support

Conversation

@piotrbulinski
Copy link
Copy Markdown
Contributor

This pull request introduces a new feature to the CLI that allows users to copy files and directories directly to and from devices, along with supporting code changes and documentation. It also adds a utility for agent version comparison to ensure compatibility, and updates dependencies. The most important changes are grouped below.

New File Copy Feature

  • Added a new copy subcommand to the CLI, enabling users to copy files and directories to and from devices using the syntax qbee-cli copy [<deviceID>:]<sourcePath> [<deviceID>:]<destinationPath>. The command validates arguments and ensures only one endpoint is remote. [1] [2]
  • Implemented UploadFileToDevice and DownloadFileFromDevice methods in the client, which handle file transfers and check that the device is running agent version 2026.19 or higher.

Agent Version Compatibility

  • Added the IsMinimumAgentVersion method to DeviceInventory, which compares agent versions to ensure the device meets minimum requirements for features like file copy.
  • Added comprehensive unit tests for IsMinimumAgentVersion to cover various version comparison scenarios and edge cases.

Documentation

  • Updated the README.md with clear instructions and examples for using the new file copy feature, including requirements and usage notes.

Dependency Updates

  • Updated dependencies in go.mod to newer versions for smux, transport, term, and sys.

Internal Improvements

  • Minor import additions in inventory.go to support new functionality.

piotrbulinski and others added 2 commits May 5, 2026 12:27
Co-authored-by: Copilot <copilot@github.com>
@piotrbulinski piotrbulinski changed the title Add direct file transfer support DEV-2772: Add direct file transfer support May 5, 2026
@piotrbulinski piotrbulinski requested a review from dmitry84 May 5, 2026 10:31
Copy link
Copy Markdown
Contributor

@dmitry84 dmitry84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any limits on the file size?

@piotrbulinski
Copy link
Copy Markdown
Contributor Author

No.

@piotrbulinski piotrbulinski merged commit 07c0f28 into main May 6, 2026
6 checks passed
@piotrbulinski piotrbulinski deleted the add-file-transfer-support branch May 6, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants