GG(1)
π NAME π
okay bestie, welcome to GG(1) from the General Commands Manual β this is the page for gg, the gemini client. Cute, useful, and ready to fetch. π
β¨
β¨ SYNOPSIS β¨
gg [-23Nnq] [-C cert] [-d mode] [-H sni] [-K key] [-P host[:port]]
[-T seconds] gemini://...
πΈ DESCRIPTION πΈ
Okay so gg (short for gemini get, lowkey iconic) fetches the gemini page you hand it and prints it to standard output. That's the main-character move. π¦
The options are as follows:
π the options, as follows π
-2β UseTLSv1.2.-3β UseTLSv1.3.-C certificateβ Use the given client certificate.-d modeβ Specify whatggshould print.modecan be one of:noneβ print only the body of the reply, the default.codeβ print only the response code.headerβ print only the response header.metaβ print only the response meta.allβ print the whole response as-is.
-H sniβ Use the givensnihost name instead of the one deducted by the IRI or proxy.-K keyβ Specify the key for the certificate. It's mandatory if-Cis used.-Nβ Disables the server name verification.-nβ Check the given IRI for validity, but don't issue any requests.-P host[:port]β Connect to the givenhostandportto do the request instead of the ones extracted by the IRI.portis by default1965. IPv6 addresses have to be wrapped in braces, for e.g.[::1].-qβ Don't print server error messages to standard error.-T secondsβ Killggafterseconds.
π₯ EXIT STATUS π₯
The gg utility exits with zero if the response code was in the 2x range. If a failure occurs, it exits with status code 1. Otherwise, the error code reflects the Gemini response code. So 2x is the slay zone, a total failure is 1, and everything else is the Gemini code doing its thing. π
π«Ά ACKNOWLEDGEMENTS π«Ά
gg uses the βFlexible and Economicalβ UTF-8 decoder written by Bjoern Hoehrmann. Credit where it's due, bestie. πΈ
π SEE ALSO π
π AUTHORS π
The gg utility was written by Omar Polo <op@omarpolo.com>. Author moment, honestly. π
π CAVEATS π
Real talk, bestie: gg doesn't perform TOFU (Trust On First Use) or any X.509 certificate validation beyond the name verification.
Also, gg doesn't follow redirects.
okay that's the whole GG(1) page, sourced from Debian and dated May 29, 2024. Bye bestie ππ¦
π¦ where this page comes from
- nixos 26.05: gmid 2.1.1
- nixpkgs unstable: gmid 2.1.1
- Copyright (c) 2021-2024 Omar Polo <op@omarpolo.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms