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

# repo.listTags()

> List all tags in the repository with pagination support.

> [!WARNING]
>
> This page documents the earlier Code Storage SDKs: `@pierre/storage`, `pierre-storage`, and
> `code-storage-go`. New code uses the [Pierre SDK](https://code.storage/docs/sdks.md). To move code to the new SDK, use the
> [`pierre-migrate`
> skill](https://github.com/pierrecomputer/skills/tree/main/skills/pierre-migrate).

```typescript TypeScript theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
// List all tags
const tags = await repo.listTags();
console.log(tags.tags); // Array of tag info

// With pagination
const page = await repo.listTags({
  limit: 10,
  cursor: tags.nextCursor,
});
```

```python Python theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
tags = await repo.list_tags(limit=10)
print(tags["tags"])

# Use pagination cursor for the next page
next_page = await repo.list_tags(
    limit=10,
    cursor=tags.get("next_cursor"),
)
```

```go Go theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
// List tags with pagination
tags, err := repo.ListTags(context.Background(), storage.ListTagsOptions{Limit: 10})
fmt.Println(tags.Tags)

nextPage, err := repo.ListTags(context.Background(), storage.ListTagsOptions{
	Limit:  10,
	Cursor: tags.NextCursor,
})
```

## Options

**limit** `number`

Maximum tags per page

**cursor** `string`

Pagination cursor from a previous response

## Response

**tags** `array`

List of tag info objects, each containing `name`, `sha`, and `cursor`

**nextCursor** `string`

Cursor for the next page (absent when no more results)

**hasMore** `boolean`

Whether additional pages of results are available


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.