Question/Feature Idea: Separating out the node 'engine' from the cli #1996
Unanswered
pmatthews05
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Hey @pmatthews05, how would that differ from the existing SDKs like the Microsoft Graph SDK or PnPjs? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking through the code of M365 CLI, it is an awesome amount of node code that calls into Graph, SharePoint, OneDrive etc.
Is it possible to import the M365 cli into my Node Azure functions (for example) and use the engine part that makes the calls, and not worry about the CLI, as the CLI is just calling the node functions that performs the work. If so, could someone provide a blog post/example how to log in and call something in a node azure function project?
Alternatively, I understand this would be a bit of work, but have you thought about separating the project into 2, where you have the M365 Core, and the M365 CLI. The M365 CLI would depend on the M365 Core, but it would allow people to use the M365 Core in their node projects without needing to re-invent the wheel. Similar how PNP Powershell and PNP Core are split.
Happy to be shot down, but just an idea.
Beta Was this translation helpful? Give feedback.
All reactions