Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.54 KB

add.md

File metadata and controls

59 lines (43 loc) · 1.54 KB

add

Group files in a bucket

Syntax

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.

Examples

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

Flags

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

qr

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

ttl

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

url

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