.\" Generated by scdoc 1.11.2 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "gmni" "1" "2023-05-29" .P .SH NAME .P gmni - Gemini client .P .SH SYNPOSIS .P \fBgmni\fR [-46lLiIN] [-j \fImode\fR] [-E \fIpath\fR] [-d \fIinput\fR] [-D \fIpath\fR] \fIgemini://.\&.\&.\&\fR .P .SH DESCRIPTION .P \fBgmni\fR executes a gemini request and, if successful, prints the response body to stdout.\& .P If an error is returned, information is printed to stderr and the process exits with a non-zero exit status equal to the response status.\& If a response is returned which is neither successful or an error, the response status and meta text are printed to stderr.\& .P If the server requests user input, a prompt is shown and a second request is performed with the user'\&s input supplied to the server.\& .P .SH OPTIONS .P \fB-4\fR .RS 4 Force the connection to use IPv4.\& .P .RE \fB-6\fR .RS 4 Force the connection to use IPv6.\& .P .RE \fB-d\fR \fIinput\fR .RS 4 If the server requests user input, a second request is performed with the given input string as the user input.\& .P .RE \fB-D\fR \fIpath\fR .RS 4 If the server requests user input, \fIpath\fR is opened and read, and a second request is performed with the contents of \fIpath\fR as the user input.\& .P .RE \fB-E\fR \fIpath\fR:\fIkey\fR .RS 4 Sets the path to the client certificate and private key file to use, both PEM encoded.\& .P .RE \fB-l\fR .RS 4 For \fBtext/*\fR responses, \fBgmni\fR normally adds a line feed if stdout is a TTY and the response body does not include one.\& This flag suppresses this behavior.\& .P .RE \fB-L\fR .RS 4 Follow redirects.\& .P .RE \fB-j\fR \fImode\fR .RS 4 Sets the TOFU (trust on first use) configuration, which controls if the client shall trust new certificates.\& \fImode\fR can be one of \fBalways\fR, \fBonce\fR, or \fBfail\fR.\& .P .RE \fB-i\fR .RS 4 Print the response status and meta text to stdout.\& .P .RE \fB-I\fR .RS 4 Print the response status and meta text to stdout, and suppress the printing of the response body to stdout.\& .P .RE \fB-N\fR .RS 4 Suppress the input prompt if the server requests an input, and instead print a diagnostic message and exit with a zero (successful) status code.\& .P .RE \fB-o\fR \fIpath\fR .RS 4 Write output to \fIpath\fR.\& If \fIpath\fR ends with a '\&/'\&, the basename of the URL will be appended.\& If \fIpath\fR is the empty string, ".\&/" will be presumed.\&