-
Notifications
You must be signed in to change notification settings - Fork 15
cdn
Dilshat edited this page Feb 28, 2019
·
3 revisions
Allows to upload and download user's raw artifacts to/from CDN
usage: subutai cdn <command> [<args> ...]
Download/upload files from/to CDN
Flags:
-h, --help Show context-sensitive help (also try --help-long and
--help-man).
-d, --debug Set log level to DEBUG
Subcommands:
cdn get [<flags>] <id>
Download file
cdn put --file=FILE --token=TOKEN
Upload file
Example:
subutai cdn get QmRNJU6q9wBjT6PeqeHwuChxMf3h7ViTyuLj8h31aN2dXr
INFO[2019-02-27 12:25:21] Downloading test.dat
0 B / 3 B [--------------------------------------------------------] 0.00% 0s
INFO[2019-02-27 12:25:22] File test.dat downloaded to /var/cache/subutai
- Argument
id
- id of file on CDN - Parameter
--destination
directory where a file from CDN will be downloaded (optional)
subutai cdn put -t 7b77a56e-9649-4f5d-b038-96d6c91db457 -f /var/cache/subutai/test.dat
9 B / 9 B [========================================================] 100.00% 0s
INFO[2019-02-27 12:26:57] File test.dat uploaded to CDN:
{
"size" : "9",
"digest-method" : "sha256",
"name" : "test.dat",
"digest" : "5de4e78de8484630211c3071e36250431b34f0886e2a1eff058f2005d87b7fe9",
"id" : "QmTypZwts3g6XrrfyUFkVsCnvQzDafNPh8K3WmbNgzVfC4",
"md5" : "a65dd80c45773f8b81c5af1a8046b100"
}
- Parameter
-t/--token
- user CDN token (mandatory) - Parameter
-f/--file
- path to file to upload to CDN (mandatory)