2021-10-18 20:16:29 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DomainCommand supports managing DNS entries.
|
|
|
|
var DomainCommand = &cli.Command{
|
|
|
|
Name: "domain",
|
|
|
|
Usage: "Manage domains via 3rd party providers",
|
|
|
|
Aliases: []string{"d"},
|
|
|
|
ArgsUsage: "<domain>",
|
|
|
|
Description: `
|
2021-10-19 22:05:49 +00:00
|
|
|
This command supports managing domain name records via 3rd party providers such
|
2021-10-20 15:36:41 +00:00
|
|
|
as Gandi DNS. It supports listing, creating and removing all types of records
|
|
|
|
that you might need for managing Co-op Cloud apps.
|
2021-10-18 20:16:29 +00:00
|
|
|
|
|
|
|
The following providers are supported:
|
|
|
|
|
|
|
|
Gandi DNS https://www.gandi.net
|
|
|
|
|
2021-10-19 22:05:49 +00:00
|
|
|
You need an account with such a provider already. Typically, you need to
|
|
|
|
provide an API token on the Abra command-line when using these commands so that
|
|
|
|
you can authenticate with your provider account.
|
|
|
|
|
2021-10-18 20:16:29 +00:00
|
|
|
Any new provider can be integrated, we welcome change sets. See the underlying
|
|
|
|
DNS library documentation for more. It supports many existing providers and
|
|
|
|
allows to implement new provider support easily.
|
|
|
|
|
|
|
|
https://pkg.go.dev/github.com/libdns/libdns
|
|
|
|
|
|
|
|
`,
|
|
|
|
Subcommands: []*cli.Command{
|
|
|
|
DomainListCommand,
|
2021-10-19 22:05:57 +00:00
|
|
|
DomainCreateCommand,
|
2021-10-20 14:52:19 +00:00
|
|
|
DomainRemoveCommand,
|
2021-10-18 20:16:29 +00:00
|
|
|
},
|
|
|
|
}
|