-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathcmd.go
More file actions
44 lines (35 loc) · 1.43 KB
/
cmd.go
File metadata and controls
44 lines (35 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package cmd
import (
"context"
"github.com/databricks/cli/cmd/auth"
"github.com/databricks/cli/cmd/lakebox"
"github.com/databricks/cli/cmd/root"
"github.com/spf13/cobra"
)
func New(ctx context.Context) *cobra.Command {
cli := root.New(ctx)
cli.Use = "lakebox"
cli.Short = "Lakebox CLI — manage Databricks sandbox environments"
cli.Long = `Lakebox CLI — manage Databricks sandbox environments.
Lakebox provides SSH-accessible development environments backed by
microVM isolation. Each lakebox is a personal sandbox with pre-installed
tooling (Python, Node.js, Rust, Databricks CLI) and persistent storage.
Common workflows:
lakebox auth login # authenticate to Databricks
lakebox ssh # SSH to your default lakebox
lakebox ssh my-project # SSH to a named lakebox
lakebox list # list your lakeboxes
lakebox create # create a new lakebox
lakebox delete my-project # delete a lakebox
lakebox status my-project # show lakebox status
The CLI manages your ~/.ssh/config so you can also connect directly:
ssh my-project # after 'lakebox ssh'
`
cli.CompletionOptions.DisableDefaultCmd = true
cli.AddCommand(auth.New())
// Register lakebox subcommands directly at root level.
for _, sub := range lakebox.New().Commands() {
cli.AddCommand(sub)
}
return cli
}