-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchhoto.1
More file actions
54 lines (54 loc) · 1.61 KB
/
Copy pathchhoto.1
File metadata and controls
54 lines (54 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.\" Manpage for chhoto-url-cli.
.\" Contact sayantan[dot]santra689[at]gmail[dot]com to correct errors or typos.
.TH man 1 "June 2025" "chhoto-url-cli"
.SH NAME
chhoto-url-cli
.SH SYNOPSIS
chhoto [--api-key <api-key>] [--url <url>] [-h|--help] [--version]
.TP
chhoto getall
.TP
chhoto new <longurl> [<shorturl>] [<expiry-delay>]
.TP
chhoto expand <shorturl>
.TP
chhoto delete <shorturl>
.SH DESCRIPTION
Chhoto URL CLI is a CLI tool to be used to interact with Chhoto URL
.SH SUBCOMMANDS
.TP
getall: Get info about all shorturls in the server.
.TP
getconfig: Print the backend config.
.TP
new <longurl> [<shorturl>] [<expiry-delay>]: Create a new shorturl.
If shorturl is not provided, it will be generated automatically.
Expiry delay should be in seconds. Default value is 0, which means no expiry.
.TP
delete <shorturl>: Delete a given shorturl.
.TP
expand <shorturl>: Get info about a particular shorturl.
.SH FLAGS
.TP
--url <url>
Provide URL, overrides URL from config file.
.TP
--api-key <api-key>
Provide API key, overrides API key from config file. It is preferred over password.
.TP
--password <password>
Password for the Chhoto URL server. It may also be passed interactively.
.TP
-h|--help
Print help information.
.TP
--version
Print version information.
.SH CONFIG
There should be a config file named config.json in the $XDG_CONFIG_HOME/chhoto/ directory.
It should be a valid json file with "url" and "apiKey" entries. Needless to say, your Chhoto URL server must
support API key authentication.
.sp
Config file might be avoided if --url and --api-key is provided.
.SH AUTHOR
Sayantan Santra sayantan[dot]santra689[at]gmail[dot]com