---
jsApi: true
title: "[F] listServices"

---
```ts
listServices(program): Service[]
```

List all the services defined in the typespec program

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](Interface.Program.md) | Program |

## Returns

[`Service`](Namespace.decorators.Interface.Service.md)[]

List of service.
