···3535```console
3636$ git-pages-cli https://mycoolweb.site --password xyz --challenge
3737_git-pages-challenge.mycoolweb.site. 3600 IN TXT "317716dee4379c167e8b5ce9df38eb880e043e5a842d160fe8d5bb408ee0c191"
3838+$ git-pages-cli https://mycoolweb.site --password xyz --challenge-bare
3939+317716dee4379c167e8b5ce9df38eb880e043e5a842d160fe8d5bb408ee0c191
3840```
39414042To deploy a site from a git repository available on the internet (`--password` may be omitted if the repository is allowlisted via DNS):
+11-3
main.go
···1616)
17171818var passwordFlag = pflag.String("password", "", "password for DNS challenge authorization")
1919-var challengeFlag = pflag.Bool("challenge", false, "compute DNS challenge entry from password")
1919+var challengeFlag = pflag.Bool("challenge", false, "compute DNS challenge entry from password (output zone file record)")
2020+var challengeBareFlag = pflag.Bool("challenge-bare", false, "compute DNS challenge entry from password (output bare TXT value)")
2021var uploadGitFlag = pflag.String("upload-git", "", "replace site with contents of specified git repository")
2122var uploadDirFlag = pflag.String("upload-dir", "", "replace site with contents of specified directory")
2223var deleteFlag = pflag.Bool("delete", false, "delete site")
···2526func singleOperation() bool {
2627 operations := 0
2728 if *challengeFlag {
2929+ operations++
3030+ }
3131+ if *challengeBareFlag {
2832 operations++
2933 }
3034 if *uploadDirFlag != "" {
···9710198102 var request *http.Request
99103 switch {
100100- case *challengeFlag:
104104+ case *challengeFlag || *challengeBareFlag:
101105 if *passwordFlag == "" {
102106 fmt.Fprintf(os.Stderr, "error: no --password option specified\n")
103107 os.Exit(1)
104108 }
105109106110 challenge := sha256.Sum256(fmt.Appendf(nil, "%s %s", siteUrl.Hostname(), *passwordFlag))
107107- fmt.Fprintf(os.Stdout, "_git-pages-challenge.%s. 3600 IN TXT \"%x\"\n", siteUrl.Hostname(), challenge)
111111+ if *challengeBareFlag {
112112+ fmt.Fprintf(os.Stdout, "%x\n", challenge)
113113+ } else {
114114+ fmt.Fprintf(os.Stdout, "_git-pages-challenge.%s. 3600 IN TXT \"%x\"\n", siteUrl.Hostname(), challenge)
115115+ }
108116 os.Exit(0)
109117110118 case *uploadGitFlag != "":