Command: Push

Using the Push Command

cp-remote push
cp-remote pu #alias
cp-remote sync #alias
cp-remote sy #alias

The push command will sync files and folders to the remote container.

To specify a specific remote project path use the --remote-project-path flag

cp-remote push --remote-project-path /public/sub-folder/

Command Reference

Options:

Option Alias Default Description
--config Local config file. Default is .cp-remote-settings.yml within working directory.
--file -f Push a specific file to the pod.
--kube-environment-name -e The full remote environment name (e.g. project-key-git-branch).
--remote-project-path -a /app/ The absolute path to the remote project folder
--service -s web The service to use (e.g. web, mysql).

Flags:

Flag Alias Default Description
--delete false Delete extraneous files from destination directories.
--dry-run false Show what will be transferred without executing.
--rsync-verbose false Run rsync in verbose mode for debugging.
--yes -y false Skip warning.