cli icon indicating copy to clipboard operation
cli copied to clipboard

CLI-851: Acli and copying specific files between environments.

Open john-cullen-acquia opened this issue 2 years ago • 2 comments

Our team has been looking at the ACLI help and the ability to copy files between environments . Is there a plan in the future for a developer to copy certain files or directories using this command or something similar; not just copying the entire file system between environments?

The command below is what we were looking into.

acli help api:environments:file-copy
Description:
  Copies files to this environment.

Usage:
  api:environments:file-copy [options] [--] <environmentId>
  api:environments:file-copy 12-d314739e-296f-11e9-b210-d663bd873d93 --source="14-0c7e79ab-1c4a-424e-8446-76ae8be7e851"
  api:environments:file-copy myapp.dev --source="14-0c7e79ab-1c4a-424e-8446-76ae8be7e851"

Arguments:
  environmentId         The environment identifier. The identifier is a compound key consisting of the internal database ID of the environment and the application UUID. You may also use an environment alias or UUID.

Options:
      --source=SOURCE   The ID of the environment to copy files from.
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

john-cullen-acquia avatar Sep 16 '22 01:09 john-cullen-acquia

You're essentially asking for rsync, aren't you @john-cullen-acquia ?

anavarre avatar Sep 19 '22 14:09 anavarre

Two items @anavarre .

  • Rsync would be awesome. On Classic Cloud we are able to rsync between two environments manually using bash if needed.
  • Pushing certain files or directories between different environments would be very user friendly.

john-cullen-acquia avatar Sep 19 '22 22:09 john-cullen-acquia