mirror of
https://github.com/spf13/cobra
synced 2025-04-28 17:47:19 +00:00
18 lines
347 B
Markdown
18 lines
347 B
Markdown
|
---
|
||
|
weight: 3
|
||
|
---
|
||
|
|
||
|
# Installing
|
||
|
|
||
|
Using Cobra is easy. First, use `go get` to install the latest version
|
||
|
of the library. This command will install the `cobra` generator executable
|
||
|
along with the library and its dependencies:
|
||
|
|
||
|
go get -u github.com/spf13/cobra
|
||
|
|
||
|
Next, include Cobra in your application:
|
||
|
|
||
|
```go
|
||
|
import "github.com/spf13/cobra"
|
||
|
```
|