# Getting Started

> Install and configure @anymux/google-drive.

Source: https://anymux-docs.n.yatsyk.com/docs/google-drive/getting-started

# Getting Started

## Installation

```bash
pnpm add @anymux/google-drive
```

## Basic Usage

```ts
import { GoogleDriveFileSystem } from "@anymux/google-drive";

const fs = new GoogleDriveFileSystem({
  accessToken: "your-oauth2-token",
});

// List root
const entries = await fs.readDir("/");

// Read a file
const content = await fs.readFile("/document.txt");

// Upload a file
await fs.writeFile("/upload.txt", new TextEncoder().encode("Hello, Drive!"));
```
