Group files in a bucket
hog add [files] [flags]
This command takes at least one file as an argument, it will group all the files and group them inside a bucket.
Then it will return the id
for the bucket.
hog add test.jpg
hog add test_1.jpg ./test_2.jpb
hog add test.jpg /home/example/download/file.pdf
hog add test.jpg /home/example/download/file.pdf --url
hog add test.jpg /home/example/download/file.pdf -u
Flag | Short code | Description |
---|---|---|
qr | q | Return a qr code with the url as response |
ttl | Remove a bucket after a period of time | |
url | u | Return a share url as response |
This flag if enable will return an qr with the url to share, created by using the configuration inside .hog.yml
.
hog add test.jpg --qr
hog add test.jpg test_1.png -q
This flag will set a ttl
Time To live. Which is a duration that the file is going to be available
in hog
. Under the hood is passing the value of the flag to the command remove
.
hog add test.jpg --ttl 10s
hog add test.jpg test_1.png --ttl 1m
This flag if enable will return an url to share, created by using the configuration inside .hog.yml
.
hog add test.jpg --url
hog add test.jpg test_1.png -u