Copies a file from your local computer to the remote server. Uploads the files to the /tmp
directory by default, unless a path is specified.
This command open the firewall for SSH from your IP address temporarily (20 minutes) and starts a SSH session. If a role is specified the command will connect to the first server with that role.
You need to add your public (local) SSH key to your Cloud 66 account before running this command. You also need to have “shell to server” rights on the application to use this command.
This command is only supported on Linux and OS X (for Windows you can run this in a virtual machine if necessary)
$ cx upload --stack <application name> --server <server name> | <server IP> | <server role> /path/to/source/file /path/to/target/directory