Welcome, and thank you for your interest in contributing to Teams Toolkit CLI!
Please review this document for setting up your development environment, debugging and run Teams Toolkit CLI. If you have any questions, please raise your issue on github.
Verify you have the right prerequisites for building Teams apps:
The Teams Toolkit CLI requires a Microsoft 365 organizationl account where Teams is running and has been registered.
The Teams Toolkit CLI may require an Azure account and subscription to deploy the Azure resources for your project.
NOTE: Don't have a M365 to experience building Teams app? Sign up for M365 Developer Program, which allows you to have a testing tenant with preconfigured permissions.
- Install Node v18 or later
- Install PNPM v8 or later
git clone https://github.com/OfficeDev/TeamsFx.git
cd TeamsFx
npm run setup
This will run "pnpm install && npm run build" to link packages in monorepo locally.
cd TeamsFx
npm run setup
npm link
cd TeamsFx/packages/cli
code .
- In the debug Treeview choose debugging profile
- Hit 'F5' or click start debugging button
- Run:
npm install -g @microsoft/teamsapp-cli
(Pls check the version is the latest version) - Now the package is installed in your global npm folder. You can type 'teamsapp -h' to see how to use the cli tool.
cd TeamsFx/packages/cli
npm run test:unit
cd TeamsFx/packages/cli
npm run test:e2e
NOTE: When run E2E tests it may pop up windows to ask you to login your Azure account or M365 account, please login your accout to continue the test.
The project setup ESLINT and prettier for coding style and formating, please follow the commands below
npm run lint
npm run lint:fix
npm run check-format
npm run format
pnpm install XXX
pnpm remove XXX
Your contributions to open source, large or small, make great projects like this possible. Thank you for taking the time to contribute.