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

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

List all the services defined in the TypeSpec program

## Parameters

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

## Returns

[`Service`](../interfaces/Service.md)[]

List of service.
