upload
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)
Options
Argument | Required? | Default | Description |
---|---|---|---|
--stack, -s <application name> | yes | — | The application name |
--server <server name> | <server ip> | <server role> | yes | — | Name or IP or role of the server to which the file will be uploaded |
/path/to/source/file | yes | — | Local path to the file that will be uploaded |
/path/to/target/dir | no | /tmp | Path on the server where the file will be saved |