Loading...
Loading...
Use when setting up @tigrisdata/storage in a new project or configuring authentication and bucket access
npx skill4agent add tigrisdata/skills installing-tigris-storagenpm install @tigrisdata/storage
# or
yarn add @tigrisdata/storage.envTIGRIS_STORAGE_ACCESS_KEY_ID=tid_access_key_id
TIGRIS_STORAGE_SECRET_ACCESS_KEY=tsec_secret_access_key
TIGRIS_STORAGE_BUCKET=bucket_name| Variable | Purpose | Required |
|---|---|---|
| Authentication key ID | Yes |
| Authentication secret | Yes |
| Default bucket name | Yes (can override) |
import { list } from "@tigrisdata/storage";
// Use environment defaults
const result = await list();
// Override bucket
const result = await list({
config: { bucket: "different-bucket" },
});
// Override all config
const result = await list({
config: {
bucket: "my-bucket",
accessKeyId: "key",
secretAccessKey: "secret",
},
});| Mistake | Fix |
|---|---|
Missing | Create it in project root |
| Wrong bucket name | Verify at console.tigris.dev |
| Access key not working | Regenerate at console.tigris.dev/createaccesskey |