Skip to content

CLI: add quickchr cp for file transfer (upload/download) #23

Description

@mobileskyfi

ChrInstance.upload() / download() exist (SCP via resolved creds, src/lib/scp.ts), but there is no CLI command for them. Surfaced by the examples rework (#22):

  • examples/file-transfer/ is library-only — its .sh is just a "no CLI" note (and it ships no .ps1 for the same reason).
  • examples/version-matrix/'s CLI/Python driver can't upload the sample config, so it compares default exports only (the library .ts does upload via upload()).

A thin command wrapping the existing SCP plumbing would close both gaps and let those examples ship a real CLI/Python transfer path instead of a gap note.

Proposed shape

scp-style, bidirectional:

quickchr cp <local> <name>:<remote>     # upload
quickchr cp <name>:<remote> <local>     # download

…or explicit quickchr push / quickchr pull. Uses the instance's resolved credentials (same as upload()/download()); requires the machine running + scp on the host.

Done when

  • cp (or push/pull) lands wrapping src/lib/scp.ts
  • examples/file-transfer/file-transfer.sh + .ps1 do a real round-trip
  • examples/version-matrix CLI driver can upload config/rb5009-arm64.rsc
  • examples/COVERAGE.md "Friction found" notes resolved

Refs: #22

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3research / investigation — needs grounding firstarea:cliCLI commands and UXconsumer:centrsWork needed by centrs integration or handoff surfacesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions