# Function: getProjects ▸ **getProjects**(`tree`): `Map`\<`string`, [`ProjectConfiguration`](/reference/core-api/devkit/documents/ProjectConfiguration)\> Get a map of all projects in a workspace. Use [readProjectConfiguration](/reference/core-api/devkit/documents/readProjectConfiguration) if only one project is needed. #### Parameters | Name | Type | | :----- | :-------------------------------------------------- | | `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | #### Returns `Map`\<`string`, [`ProjectConfiguration`](/reference/core-api/devkit/documents/ProjectConfiguration)\>