func GetCreateDIDCmd() *cobra.Command {
	createDIDCmd := createDIDCmd()
	createFlags(createDIDCmd)
	return createDIDCmd
}
GetCreateDIDCmd returns the Cobra create did command.
package createdidcmd
import (
	"crypto/tls"
	"crypto/x509"
	"fmt"
	"strconv"
	"github.com/hyperledger/aries-framework-go-ext/component/vdr/orb"
	"github.com/hyperledger/aries-framework-go/pkg/doc/did"
	vdrapi "github.com/hyperledger/aries-framework-go/pkg/framework/aries/api/vdr"
	"github.com/spf13/cobra"
	cmdutils "github.com/trustbloc/edge-core/pkg/utils/cmd"
	tlsutils "github.com/trustbloc/edge-core/pkg/utils/tls"
	"github.com/trustbloc/orb/cmd/orb-cli/common"
)
const (
	domainFlagName      = "domain"
	domainFileEnvKey    = "ORB_CLI_DOMAIN"
	domainFileFlagUsage = "URL to the did:orb domain. " +
		" Alternatively, this can be set with the following environment variable: " + domainFileEnvKey
	sidetreeURLFlagName  = "sidetree-url"
	sidetreeURLFlagUsage = "Comma-Separated list of sidetree url." +
		" Alternatively, this can be set with the following environment variable: " + sidetreeURLEnvKey
	sidetreeURLEnvKey = "ORB_CLI_SIDETREE_URL"
	tlsSystemCertPoolFlagName  = "tls-systemcertpool"
	tlsSystemCertPoolFlagUsage = "Use system certificate pool." +
		" Possible values [true] [false]. Defaults to false if not set." +
		" Alternatively, this can be set with the following environment variable: " + tlsSystemCertPoolEnvKey
	tlsSystemCertPoolEnvKey = "ORB_CLI_TLS_SYSTEMCERTPOOL"
	tlsCACertsFlagName  = "tls-cacerts"
	tlsCACertsFlagUsage = "Comma-Separated list of ca certs path." +
		" Alternatively, this can be set with the following environment variable: " + tlsCACertsEnvKey
	tlsCACertsEnvKey = "ORB_CLI_TLS_CACERTS"
	sidetreeWriteTokenFlagName  = "sidetree-write-token"
	sidetreeWriteTokenEnvKey    = "ORB_CLI_SIDETREE_WRITE_TOKEN"  
	sidetreeWriteTokenFlagUsage = "The sidetree write token " +
		" Alternatively, this can be set with the following environment variable: " + sidetreeWriteTokenEnvKey
	publicKeyFileFlagName  = "publickey-file"
	publicKeyFileEnvKey    = "ORB_CLI_PUBLICKEY_FILE"
	publicKeyFileFlagUsage = "publickey file include public keys for Orb DID " +
		" Alternatively, this can be set with the following environment variable: " + publicKeyFileEnvKey
	serviceFileFlagName = "service-file"
	serviceFileEnvKey   = "ORB_CLI_SERVICE_FILE"
	serviceFlagUsage    = "publickey file include services for Orb DID " +
		" Alternatively, this can be set with the following environment variable: " + serviceFileEnvKey
	recoveryKeyFlagName  = "recoverykey"
	recoveryKeyEnvKey    = "ORB_CLI_RECOVERYKEY"
	recoveryKeyFlagUsage = "The public key PEM used for recovery of the document." +
		" Alternatively, this can be set with the following environment variable: " + recoveryKeyEnvKey
	recoveryKeyFileFlagName  = "recoverykey-file"
	recoveryKeyFileEnvKey    = "ORB_CLI_RECOVERYKEY_FILE"
	recoveryKeyFileFlagUsage = "The file that contains the public key PEM used for recovery of the document." +
		" Alternatively, this can be set with the following environment variable: " + recoveryKeyFileEnvKey
	updateKeyFlagName  = "updatekey"
	updateKeyEnvKey    = "ORB_CLI_UPDATEKEY"
	updateKeyFlagUsage = "The public key PEM used for validating the signature of the next update of the document." +
		" Alternatively, this can be set with the following environment variable: " + updateKeyEnvKey
	updateKeyFileFlagName  = "updatekey-file"
	updateKeyFileEnvKey    = "ORB_CLI_UPDATEKEY_FILE"
	updateKeyFileFlagUsage = "The file that contains the public key PEM used for" +
		" validating the signature of the next update of the document." +
		" Alternatively, this can be set with the following environment variable: " + updateKeyFileEnvKey
	didAnchorOriginFlagName  = "did-anchor-origin"
	didAnchorOriginEnvKey    = "ORB_CLI_DID_ANCHOR_ORIGIN"
	didAnchorOriginFlagUsage = "did anchor origin " +
		" Alternatively, this can be set with the following environment variable: " + didAnchorOriginEnvKey
)