chore: added notes about m365 cli

This commit is contained in:
Michele Cereda
2023-04-06 18:05:22 +02:00
parent af3f626d8f
commit 7d120a02f6
3 changed files with 143 additions and 0 deletions

42
knowledge base/npm.md Normal file
View File

@@ -0,0 +1,42 @@
# Node Package Manager CLI
## Table of contents <!-- omit in toc -->
1. [TL:DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL:DR
```sh
# Disable SSL verification.
npm config set 'strict-ssl'='false'
# Use a custom CA certificate.
npm config set 'cafile'='path/to/ca/cert.pem'
# Install packages.
npm install '@pnp/cli-microsoft365'
npm install -g '@pnp/cli-microsoft365@latest'
# Remove packages.
npm uninstall '@pnp/cli-microsoft365'
```
## Further readings
- Official [documentation]
- [node.js]
## Sources
All the references in the [further readings] section, plus the following:
<!-- project's references -->
[documentation]: https://docs.npmjs.com/cli/
<!-- internal references -->
[further readings]: #further-readings
[node.js]: node.js.md
<!-- external references -->