AUTH-2529 added deprecation text to db-connect command

This commit is contained in:
Dalton 2020-05-14 10:26:09 -05:00
parent 8c870c19a6
commit df3ad2b223
2 changed files with 13 additions and 5 deletions

View File

@ -131,12 +131,12 @@ func Commands() []*cli.Command {
}, },
}, },
{ {
Name: "ssh", Name: "tcp",
Action: errorHandler(ssh), Action: errorHandler(ssh),
Aliases: []string{"rdp", "tcp", "smb"}, Aliases: []string{"rdp", "ssh", "smb"},
Usage: "", Usage: "",
ArgsUsage: "", ArgsUsage: "",
Description: `The ssh subcommand sends data over a proxy to the Cloudflare edge.`, Description: `The tcp subcommand sends data over a proxy to the Cloudflare edge.`,
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
Name: sshHostnameFlag, Name: sshHostnameFlag,

View File

@ -15,11 +15,19 @@ import (
// The tunnel package is responsible for appending this to tunnel.Commands(). // The tunnel package is responsible for appending this to tunnel.Commands().
func Cmd() *cli.Command { func Cmd() *cli.Command {
return &cli.Command{ return &cli.Command{
Category: "Database Connect (ALPHA)", Category: "Database Connect (ALPHA) - Deprecated",
Name: "db-connect", Name: "db-connect",
Usage: "Access your SQL database from Cloudflare Workers or the browser", Usage: "deprecated: Access your SQL database from Cloudflare Workers or the browser",
ArgsUsage: " ", ArgsUsage: " ",
Description: ` Description: `
This feature has been deprecated.
Please see:
cloudflared access tcp --help
for setting up database connections to the cloudflare edge.
Creates a connection between your database and the Cloudflare edge. Creates a connection between your database and the Cloudflare edge.
Now you can execute SQL commands anywhere you can send HTTPS requests. Now you can execute SQL commands anywhere you can send HTTPS requests.