Akamai Uploader tool
To install in a project:npm install --savedev akamai-uploader
Command line:
akamai -c -r -p -u
Optional
-f or --cfg : configuration file (in JSON format) containing your akamai settings.
{
"akamaiKeyName": "my-key-name",
"akamaiKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"akamaiHost": "myHost.akamaixx.net"
}
- command:
- read - read the contents from account-root and path combination
- clean - specified by path from account-root and path
- upload - upload a directory specified by upload-path
You will need to supply the following as enivronment variables
- AKAMAI_KEY_NAME - Your AKAMAI key NAME
- AKAMAI_KEY - This will be that weird UUID value
- AKAMAI_HOST - the server with the domain name for your Akamai server.
The environment variable may also be included as command line parameters as:
- -n or --akamaiKeyName
- -k or --akamaiKey
- -h or --akamaiHost
Examples (it assumes you have configured the environment variables):
- To clear a folder: akamai -c clean -r /your_root_account -p /directory_to_clear
- To upload a folder: akamai -r /your_root_account -p / -c upload -u /your_local_folder
- To read a folder: akama -c read -r /your_root_account -p /directory_to_read