cli-microsoft365

授权协议 MIT License
开发语言 JavaScript
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 齐弘业
操作系统 跨平台
开源组织
适用人群 未知
 软件概览


CLI for Microsoft 365

One CLI for Microsoft 365

GitHub

CLI for Microsoft 365 helps you manage your Microsoft 365 tenant and SharePoint Framework projects.

Website | Features | Install | Usage | Build | Contribute

Sharing is Caring | Code of Conduct | Disclaimer

Features

  • Run on any OS
    • Linux
    • MacOS
    • Windows
  • Run on any shell
    • Azure Cloud Shell
    • bash
    • cmder
    • PowerShell
    • zsh
  • Unified login
    • Access all your Microsoft 365 workloads
  • Supported workloads
    • Azure Active Directory
    • Microsoft Teams
    • Microsoft To Do
    • OneDrive
    • Outlook
    • Planner
    • Power Automate
    • Power Apps
    • Skype for Business
    • SharePoint Online
    • Yammer
  • Supported authentication methods
    • Azure Managed Identity
    • Certificate
    • Device Code
    • Username and Password
  • Manage your SharePoint Framework projects
    • Uprade your projects
    • Check your environment compatibility

Follow our Twitter account to keep yourself updated about new features, improvements, and bug fixes.

Install

To install this CLI, you will need node >= 8.0.0 installed.

npm install -g @pnp/cli-microsoft365
Install beta version β
npm install -g @pnp/cli-microsoft365@next
Alternate package managers ��

yarn

yarn global add @pnp/cli-microsoft365

npx

npx @pnp/cli-microsoft365
Run CLI for Microsoft 365 in a Docker container ��
docker run --rm -it m365pnp/cli-microsoft365:latest

Checkout our guide to learn more about how to run CLI for Microsoft 365 using Docker

Usage

Use the login command to start the Device Code login flow to authenticate with your Microsoft 365 tenant.

m365 login

On your first login you will be asked to consent to several permissions that the PnP Management Shell multi-tenant app requires for the commands to work successfully against your tenant. If you want to create your own identity to use with the CLI, refer to the Using your own Azure AD Identity guide.

For alternative authentication methods and usage, refer to the login command documentation

List all commands using the global --help option.

m365 --help

Get command information and example usage using the global --help option.

m365 spo site get --help

Execute a command and output response as text.

m365 spo site get --url https://contoso.sharepoint.com

Execute a command and output response as JSON using the global --output option.

m365 spo site get --url https://contoso.sharepoint.com --output json

Filter responses and return custom objects using JMESPath queries using the global --query option.

m365 spo site list --output json --query '[?Template==`GROUP#0`].{Title:Title, Url:Url}'

For more examples and usage, refer to the command and sample scripts documentation.

Build

To build and run this CLI locally, you will need node >= 14.0.0 installed.

# Clone this repository
$ git clone https://github.com/pnp/cli-microsoft365

# Go into the repository
$ cd cli-microsoft365

# Install dependencies
$ npm install

# Build the CLI
$ npm run build

# Symlink your local CLI build
$ npm link

When you execute any m365 command from the terminal, it will now use your local clone of the CLI.

Contribute

We love to accept contributions.

If you want to get involved with helping us grow the CLI, whether that is suggesting or adding a new command, extending an existing command or updating our documentation, we would love to hear from you.

Checkout our Wiki for guides on how to contribute to this project.

Sharing is Caring

This project is associated with the Microsoft 365 Patterns and Practices (PnP) organisation, which is a virtual team consisting of Microsoft employees and community members focused on helping the community make the best use of Microsoft products.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

  • settings.json 打开设置右上角 vue-cli-service不是内部或外部命令,也不是可运行的程序 检查package.json 中是否有 vue-cli-server,没有则需安装  执行npm install命令 执行npm run dev 命令,查看程序是否运行正常 单页面应用程序  项目 css js index.html images npm installl -g @vu

  • 在这里,我们使用开发工具vscode,工具怎么使用这里就不描述了,直接进入主题。 vue-cli 调试配置 项目准备 下载vue-cli 项目 进入vue-cli\packages@vue\cli 目录,查看cli包文件,执行命令 npm i 配置launch.json { "type": "node", "request": "la

  • 因为用vue做的大部分项目都是移动端,关于css样式不出来的解决办法 针对rem布局: 我们App.vue里肯定设置了如下样式 <template> <div id="app"> <!-- 组件缓存 --> <keep-alive> <router-view></router-view> </keep-alive> </div> </template> <scr

  • java抽象-老师的生日-逻辑思维-有趣的面试题-遁地龙卷风 (-1)写在前面 都快去北京了,硬生生的安排一场java考试,对于那些特别细节的东西我忘了吧也不觉得有什么不好,以前都记得,也都见过,只不过平时不常用连接断了,但是你死记硬背是没用的,一段时间后还是会 ... python 3&period;5 关于sys问题总结 想把自己写的模组直接调用的时候,使用这个sys.path.append(

  • npm install -g vue-cli 安装失败的解决方法 错误信息如下 Microsoft Windows [版本 10.0.17134.706] (c) 2018 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>node -v v10.15.3 C:\Users\Administrator>npm install -g vue

 相关资料
  • cli

    fis. cli 命令行相关的信息和工具类方法暴露在此模块中。 Source: cli.js, line 1 Members (static) colors 指向 colors 模块。 Source: cli.js, line 20 (static) info package.json 中的信息 Source: cli.js, line 30 (static) name 命令行工具名字 Defau

  • CLI

    Run Prettier through the CLI with this script. Run it without any arguments to see the options. To format a file in-place, use --write. You may want to consider committing your code before doing that,

  • CLI

    命令行界面(CLI)可用于创建我们的Angular JS应用程序。 它还有助于为应用程序创建单元和端到端测试。 Angular CLI的官方网站是https://cli.angular.io/ 如果单击“启动”选项,您将被定向到CLI的github存储库https://github.com/angular/angular-cli 现在让我们看一下使用Angular CLI可以做的一些事情。 安装C

  • CLI

    Angular CLI使您可以轻松地开始使用任何Angular项目。 Angular CLI附带的命令可以帮助我们快速创建和启动项目。 现在让我们来看看可用于创建项目,组件和服务,更改端口等的命令。 要使用Angular CLI,我们需要在我们的系统上安装它。 让我们使用以下命令 - npm install -g @angular/cli 要创建新项目,我们可以在命令行中运行以下命令,然后将创建

  • CLI

    在本章中,我们将了解CLI如何在Grav中工作。 CLI代表存储在bin/Grav命令行界面。 它执行一些任务,例如clearing cache ,创建backup副本等。 在不同平台上访问CLI是不同的。 在Windows上,您可以通过cmd访问,在Mac上可以通过Terminal访问,在Linux上可以使用shell。 在Windows中,您不能使用UNIX样式命令。 要使用它们,只需安装提供

  • CLI

    概述 为了帮助用户管理他们的项目,已经创建了 CLI 工具。它同时在很多方面都有帮助,从搭建项目到构建结构良好的应用程序。嵌套CLI基于 @ angular - devkit 软件包。此外,还有专门用于嵌套开发 @ nestjs / schematics 的特殊示意图 安装 使用 NPM 安装 CLI: $ npm install -g @nestjs/cli 使用 Docker Hub 安装CL