> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fga.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How To Install The SDK

> Installing the SDK client

To get started, install the Auth0 FGA SDK packages.

**Node.js**

You can find the Node.js package on npm at: [@openfga/sdk](https://www.npmjs.com/package/@openfga/sdk).

Using [npm](https://www.npmjs.com/):

```shell theme={null}
npm install @openfga/sdk
```

Using [yarn](https://yarnpkg.com):

```shell theme={null}
yarn add @openfga/sdk
```

**Go**

You can find the Go package on GitHub at: [@openfga/go-sdk](https://github.com/openfga/go-sdk).

To install:

```
go get -u github.com/openfga/go-sdk
```

In your code, import the module and use it:

```go theme={null}
import (
    . "github.com/openfga/go-sdk/client"
)

func main() {
    fgaClient, err := NewSdkClient(&ClientConfiguration{
        // ... setup the sdk
    })

    if err != nil {
        // .. Handle error
    }
}
```

You can then run

```shell theme={null}
go mod tidy
```

to update `go.mod` and `go.sum` if you are using them.

**.NET**

The OpenFGA .NET SDK is available on [NuGet](https://www.nuget.org/packages/OpenFga.Sdk).

You can install it using:

* The [dotnet CLI](https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-dotnet-cli):

```powershell theme={null}
dotnet add package OpenFGA.Sdk
```

* The [Package Manager Console](https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-powershell) inside Visual Studio:

```powershell theme={null}
Install-Package OpenFGA.Sdk
```

* [Visual Studio](https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio), [Visual Studio for Mac](https://docs.microsoft.com/en-us/visualstudio/mac/nuget-walkthrough) and [IntelliJ Rider](https://www.jetbrains.com/help/rider/Using_NuGet.html): Search for and install `OpenFGA.Sdk` in each of their respective package manager UIs.

**Python**

The OpenFGA Python SDK is available on [PyPI](https://pypi.org/project/openfga-sdk).

To install:

```
pip3 install openfga_sdk
```

In your code, import the module and use it:

```python theme={null}
import openfga_sdk
```

**Java**

You can find the Java package on [Maven Central](https://central.sonatype.com/artifact/dev.openfga/openfga-sdk). The [API reference](https://docs.fga.dev/api/service.md) examples were reviewed with version `0.10.0`.

Using [Maven](https://maven.apache.org/):

```
<dependency>
    <groupId>dev.openfga</groupId>
    <artifactId>openfga-sdk</artifactId>
    <version>0.10.0</version>
</dependency>
```

Using [Gradle](https://gradle.org/):

```groovy theme={null}
implementation 'dev.openfga:openfga-sdk:0.10.0'
```

**CLI**

The OpenFGA CLI is available on [GitHub](https://github.com/openfga/cli).

To install:

### Brew

```shell theme={null}
brew install openfga/tap/fga
```

### Linux (deb, rpm and apk) packages

Download the .deb, .rpm or .apk packages from the [releases page](https://github.com/openfga/cli/releases).

Debian:

```shell theme={null}
sudo apt install ./fga_<version>_linux_<arch>.deb
```

Fedora:

```shell theme={null}
sudo dnf install ./fga_<version>_linux_<arch>.rpm
```

Alpine Linux:

```shell theme={null}
sudo apk add --allow-untrusted ./fga_<version>_linux_<arch>.apk
```

### Docker

```shell theme={null}
docker pull openfga/cli; docker run -it openfga/cli
```

### Go

```shell theme={null}
go install github.com/openfga/cli/cmd/fga@latest
```

### Manually

Download the pre-compiled binaries from the [releases page](https://github.com/openfga/cli/releases).

## Related Sections

Get Auth0 FGA's SDKs to add authorization to your API.

[Auth0 FGA Node.js SDK
Install our Node.js & JavaScript SDK to get started.](https://www.npmjs.com/package/@openfga/sdk)

[Auth0 FGA Go SDK
Use our Go SDK to easily connect your Go application to the Auth0 FGA API](https://github.com/openfga/go-sdk)

[Auth0 FGA .NET SDK
Connect your .NET service with Auth0 FGA using our .NET SDK](https://github.com/openfga/dotnet-sdk)

[Auth0 FGA Python SDK
Connect your Python service with Auth0 FGA using our Python SDK](https://github.com/openfga/python-sdk)

[Auth0 FGA Java SDK
Connect your Java service with Auth0 FGA using our Java SDK](https://github.com/openfga/java-sdk)
