Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes aad options. Closes #5823 #6141

Open
wants to merge 42 commits into
base: v10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
80d4333
Updates version to 10.0.0
Adam-it Jul 7, 2024
f187c62
Updates option names of 'app permission add' to plural. Closes #5719
nanddeepn Jul 8, 2024
9955ee0
Removes deprecated Guest value from 'aad m365group user list' command…
nanddeepn Jul 9, 2024
f1b35b3
Adds --force option to 'spo site appcatalog remove' command. Closes #…
Saurabh7019 Jul 10, 2024
d6ff7de
Aligns options with naming convention. Closes #5616
nanddeepn Jul 12, 2024
465f848
Removes duplicate property from 'spo list list' command. Closes #6042
SmitaNachan Jul 14, 2024
9fb99f3
Updates 'spo tenant recyclebinitem restore' command. Closes #6063
nanddeepn Aug 4, 2024
d6b6f4c
Updates upgrade guidance
Adam-it Aug 11, 2024
c4ab818
Updates release notes
Adam-it Aug 11, 2024
6543732
Removes deprecated option '--wait' from 'spo site remove' command. Cl…
nanddeepn Jul 12, 2024
f857b4d
Reworks command 'spo file copy' to new API endpoint. Closes #6152
milanholemans Aug 10, 2024
ba3eb53
Removes deprecated CLI environment variables. Closes #5918
nanddeepn Jul 20, 2024
db7ba63
Updates options of 'entra enterpriseapp' commands. Closes #6155
nanddeepn Jul 25, 2024
dd41a71
Removes 'overwrite' option from 'spfx project github workflow add' co…
SmitaNachan Jul 27, 2024
e4d5b36
Updates 'm365 status' command output. Closes #5849
nanddeepn Jul 20, 2024
a75f2d7
Removes 'spo folder rename' alias. Closes #5911
SmitaNachan Jul 14, 2024
61638f5
Updates release notes
Adam-it Aug 13, 2024
f6f7854
Fixes Rights property from 'spo applicationcustomizer get' command. C…
SmitaNachan Jul 22, 2024
00ca7f5
Removed yammer command aliases. Closes #5764
SmitaNachan Jul 27, 2024
3f33103
Updates release notes
milanholemans Aug 24, 2024
0493999
Removes showSpinner config variable. Closes #6126
MathijsVerbeeck Sep 4, 2024
1e2e3f3
Aligns options for 'spo contenttype field' commands. Closes #6170
MathijsVerbeeck Sep 4, 2024
0b5c3d3
Updates release notes
milanholemans Sep 5, 2024
9d20333
Enhances 'spo sitescript get' output. Closes #5559
MathijsVerbeeck Sep 20, 2024
91be020
Updates release notes
martinlingstuyl Sep 20, 2024
1ebebe1
Reworks 'spo file move' command to new endpoint. Closes #6153
milanholemans Aug 22, 2024
01271c7
Updates release notes
martinlingstuyl Sep 20, 2024
60af08e
Removes duplicate property for 'teams tab list' command. Closes #5900
SmitaNachan Jul 14, 2024
9b81b6c
Updates 'cli doctor' response. Closes #5923
nanddeepn Jul 20, 2024
e3fd79b
Removes deprecated option from 'entra m365group user add'. Closes #6218
MathijsVerbeeck Sep 17, 2024
255b533
Ensures empty output for various 'list' commands. Closes #6288
MathijsVerbeeck Sep 17, 2024
122b43e
Removes command 'cli reconsent'. Closes #6360
MathijsVerbeeck Sep 18, 2024
9db9e7e
Updates docs thumbnail. Closes #6302
Jwaegebaert Sep 18, 2024
c512d43
Renames 'site rename' to 'tenant site rename'. Closes #6142
MathijsVerbeeck Sep 21, 2024
7404ed1
Enhances 'entra m365group set' with displayName. Closes #6146
MathijsVerbeeck Sep 21, 2024
58166a8
Updates release notes
milanholemans Sep 21, 2024
6df39c9
Remove aad options
nanddeepn Jul 12, 2024
5a4e4cf
removed aad aliases
nanddeepn Aug 14, 2024
61549e7
build fix
nanddeepn Aug 26, 2024
aae2e87
build fix
nanddeepn Sep 6, 2024
5c5545c
Removed alias blocks fromdocs
nanddeepn Sep 25, 2024
4f30de5
build fix
nanddeepn Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
201 changes: 201 additions & 0 deletions .github/workflows/release_v10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
name: Release v10

on:
push:
branches: [v10]

jobs:
build:
if: github.repository_owner == 'pnp'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [20]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
id: cache
uses: actions/cache@v4
with:
path: |
**/node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/npm-shrinkwrap.json') }}
- name: Restore dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build
run: npm run build
- name: Compress output (non-Windows)
if: matrix.os != 'windows-latest'
run: tar -cvf build.tar --exclude node_modules ./
- name: Compress output (Windows)
if: matrix.os == 'windows-latest'
run: 7z a -ttar -xr!node_modules -r build.tar .
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ matrix.node }}
path: build.tar
test:
if: github.repository_owner == 'pnp'
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
# node versions to run tests on
nodeRun: [20]
# node version on which code was built and should be tested
nodeBuild: [20]
include:
- os: ubuntu-latest
nodeRun: 18
nodeBuild: 20

steps:
- name: Configure pagefile
if: matrix.os == 'windows-latest'
uses: al-cheb/configure-pagefile-action@v1.4
with:
minimum-size: 16GB
disk-root: "C:"
- uses: actions/download-artifact@v4
with:
name: build-${{ matrix.os }}-${{ matrix.nodeBuild }}
- name: Unpack build artifact (non-Windows)
if: matrix.os != 'windows-latest'
run: tar -xvf build.tar && rm build.tar
- name: Unpack build artifact (Windows)
if: matrix.os == 'windows-latest'
run: 7z x build.tar && del build.tar
- name: Use Node.js ${{ matrix.nodeRun }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodeRun }}
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
id: cache
uses: actions/cache@v4
with:
path: |
**/node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.nodeBuild }}-${{ hashFiles('**/npm-shrinkwrap.json') }}
- name: Restore dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Test with coverage
# we run coverage only on Node that was used to build
if: matrix.nodeRun == matrix.nodeBuild
run: npm test
- name: Test without coverage
# we want to run tests on older Node versions to ensure that code works
if: matrix.nodeRun != matrix.nodeBuild
run: npm run test:test
- name: Compress output (non-Windows)
if: matrix.nodeRun == matrix.nodeBuild && matrix.os != 'windows-latest' && always()
run: tar -cvf coverage.tar coverage
- name: Compress output (Windows)
if: matrix.nodeRun == matrix.nodeBuild && matrix.os == 'windows-latest' && always()
run: 7z a -ttar -r coverage.tar coverage
- uses: actions/upload-artifact@v4
if: matrix.nodeRun == matrix.nodeBuild && always()
with:
name: coverage-${{ matrix.os }}-${{ matrix.nodeRun }}
path: coverage.tar

publish_v10:
if: github.repository_owner == 'pnp'
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
name: build-ubuntu-latest-20
- name: Unpack build artifact
run: tar -xvf build.tar && rm build.tar
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
id: cache
uses: actions/cache@v4
with:
path: |
**/node_modules
key: node_modules-ubuntu-latest-20-${{ hashFiles('**/npm-shrinkwrap.json') }}
- name: Restore dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Stamp beta to package version
run: node scripts/update-package-version.js $GITHUB_SHA
- name: Publish @ten
run: npm publish --tag ten --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Compress output
run: tar -cvf build.tar --exclude node_modules ./
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-ubuntu-latest-20
path: build.tar
overwrite: true

deploy_docker:
if: github.repository_owner == 'pnp'
needs: publish_v10
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4
with:
name: build-ubuntu-latest-20
- name: Unpack build artifact
run: tar -xvf build.tar && rm build.tar
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract version from package
id: package_version
run: |
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Wait for npm publish
run: node scripts/wait-npm-publish.js ten ${{ steps.package_version.outputs.version }}
- name: Build and push ${{ steps.package_version.outputs.version }}
uses: docker/build-push-action@v5
with:
push: true
tags: m365pnp/cli-microsoft365:${{ steps.package_version.outputs.version }}
build-args: |
CLI_VERSION=${{ steps.package_version.outputs.version }}
- name: Build and push ten
uses: docker/build-push-action@v5
with:
push: true
tags: m365pnp/cli-microsoft365:ten
build-args: |
CLI_VERSION=${{ steps.package_version.outputs.version }}
1 change: 0 additions & 1 deletion docs/docs/_clisettings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ Setting name|Definition|Default value
`prompt`|Prompts for missing values in required options and enables interactive selection when multiple values are available for a command that requires a specific value to be retrieved.|`true`
`promptListPageSize`|By default, lists of choices longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once.|7
`showHelpOnFailure`|Automatically display help when executing a command failed|`true`
`showSpinner`|Display spinner when executing commands|`true`
`tenantId`|ID of the default tenant to use when authenticating with|``
37 changes: 36 additions & 1 deletion docs/docs/about/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,41 @@ sidebar_position: 3

# Release notes

## v10.0.0 (beta)

### Changes

- updated docs thumbnail [#6302](https://github.com/pnp/cli-microsoft365/issues/6302)

### ⚠️ Breaking changes

- updated option names of [app permission add](../cmd/app/permission/permission-add.mdx) to plural [#5719](https://github.com/pnp/cli-microsoft365/issues/5975)
- removed deprecated guest filtering for [entra m365group user list](../cmd/entra/m365group/m365group-user-list.mdx) command [#5558](https://github.com/pnp/cli-microsoft365/issues/5558)
- added `--force` option to [spo site appcatalog remove](../cmd/spo/site/site-appcatalog-remove.mdx) command [#6091](https://github.com/pnp/cli-microsoft365/issues/6091)
- aligned options with naming convention [#5616](https://github.com/pnp/cli-microsoft365/issues/5616)
- removed duplicate property from [spo list list](../cmd/spo/list/list-list.mdx) command [#6042](https://github.com/pnp/cli-microsoft365/issues/6042)
- updated [spo tenant recyclebinitem restore](../cmd/spo/tenant/tenant-recyclebinitem-restore.mdx) command output [#6063](https://github.com/pnp/cli-microsoft365/issues/6063)
- removed deprecated option `wait` option from [spo site remove](../cmd/spo/site/site-remove.mdx) command [#5956](https://github.com/pnp/cli-microsoft365/issues/5956)
- reworked command options of command [spo file copy](../cmd/spo/file/file-copy.mdx) [#6152](https://github.com/pnp/cli-microsoft365/issues/6152)
- removed deprecated CLI environment variables [#5918](https://github.com/pnp/cli-microsoft365/issues/5918)
- updated options of `entra enterpriseapp` commands [#6155](https://github.com/pnp/cli-microsoft365/issues/6155)
- removed `overwrite` option from [spfx project github workflow add](../cmd/spfx/project/project-github-workflow-add.mdx) command [#5765](https://github.com/pnp/cli-microsoft365/issues/5765)
- updated [status](../cmd/status.mdx) command output [#5849](https://github.com/pnp/cli-microsoft365/issues/5849)
- removed [spo folder rename](../cmd/spo/folder/folder-set.mdx) alias [#5911](https://github.com/pnp/cli-microsoft365/issues/5911)
- removed stringified property from [spo applicationcustomizer get](../cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx) command [#6052](https://github.com/pnp/cli-microsoft365/issues/6052)
- removed all `yammer` command aliases [#5764](https://github.com/pnp/cli-microsoft365/issues/5764)
- removed `showSpinner` config variable [#6126](https://github.com/pnp/cli-microsoft365/issues/6126)
- aligned options of `spo contenttype field` commands [#6170](https://github.com/pnp/cli-microsoft365/issues/6170)
- enhanced the output of [spo sitescript get](../cmd/spo/sitescript/sitescript-get.mdx) command [#5559](https://github.com/pnp/cli-microsoft365/issues/5559)
- updated [spo file move](../cmd/spo/file/file-move.mdx) options [#6153](https://github.com/pnp/cli-microsoft365/issues/6153)
- updated purpose of option `displayName` for [entra m365group set](../cmd/entra/m365group/m365group-set.mdx) command [#6146](https://github.com/pnp/cli-microsoft365/issues/6146)
- renamed command `spo site rename` to [spo tenant site rename](../cmd/spo/tenant/tenant-site-rename.mdx) [#6142](https://github.com/pnp/cli-microsoft365/issues/6142)
- removed `cli reconsent` command [#6360](https://github.com/pnp/cli-microsoft365/issues/6360)
- ensured empty result output for various list commands [#6288](https://github.com/pnp/cli-microsoft365/issues/6288)
- removed deprecated `userName` option from [entra m365group user add](../cmd/entra/m365group/m365group-user-add.mdx) command [#6218](https://github.com/pnp/cli-microsoft365/issues/6218)
- updated [cli doctor](../cmd/cli/cli-doctor.mdx) command output [#5923](https://github.com/pnp/cli-microsoft365/issues/5923)
- removed duplicate properties from [teams tab list](../cmd/teams/tab/tab-list.mdx) command [#5900](https://github.com/pnp/cli-microsoft365/issues/5900)

## v9.1.0 (beta)

### New commands
Expand Down Expand Up @@ -2996,7 +3031,7 @@ sidebar_position: 3
**SharePoint:**

- [spo feature disable](../cmd/spo/feature/feature-disable.mdx) - disables feature for the specified site or web [#676](https://github.com/pnp/cli-microsoft365/issues/676)
- [spo site rename](../cmd/spo/site/site-rename.mdx) - renames the URL and title of a site collection [#1197](https://github.com/pnp/cli-microsoft365/issues/1197)
- [spo site rename](../cmd/spo/tenant/tenant-site-rename.mdx) - renames the URL and title of a site collection [#1197](https://github.com/pnp/cli-microsoft365/issues/1197)

**Yammer:**

Expand Down
10 changes: 5 additions & 5 deletions docs/docs/cmd/app/permission/permission-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ m365 app permission add [options]
`--appId [appId]`
: Client ID of the Microsoft Entra app registered in the .m365rc.json file to retrieve API permissions for.

`--applicationPermission [applicationPermission]`
`--applicationPermissions [applicationPermissions]`
: Space-separated list of application permissions to add.

`--delegatedPermission [delegatedPermission]`
`--delegatedPermissions [delegatedPermissions]`
: Space-separated list of delegated permissions to add.

`--grantAdminConsent`
Expand All @@ -37,19 +37,19 @@ If you have multiple apps registered in your .m365rc.json file, you can specify
Adds the specified application permissions to the default app registered in the _.m365rc.json_ file while granting admin consent.

```sh
m365 app permission add --applicationPermission 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --grantAdminConsent
m365 app permission add --applicationPermissions 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --grantAdminConsent
```

Adds the specified delegated permissions to the default app registered in the _.m365rc.json_ file without granting admin consent.

```sh
m365 app permission add --delegatedPermission 'https://graph.microsoft.com/offline_access'
m365 app permission add --delegatedPermissions 'https://graph.microsoft.com/offline_access'
```

Adds the specified application and delegated permissions to a specific app registered in the _.m365rc.json_ file while granting admin consent.

```sh
m365 app permission add --appId '1663767b-4172-4519-bfd1-28e6ff19055b' --applicationPermission 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --delegatedPermission 'https://graph.microsoft.com/offline_access' --grantAdminConsent
m365 app permission add --appId '1663767b-4172-4519-bfd1-28e6ff19055b' --applicationPermissions 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --delegatedPermissions 'https://graph.microsoft.com/offline_access' --grantAdminConsent
```

## Response
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/cmd/cli/cli-consent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ m365 cli consent [options]

```md definition-list
`-s, --service <service>`
: Service for which to consent permissions. Allowed values: `VivaEngage`, (deprecated)`yammer`.
: Service for which to consent permissions. Allowed values: `VivaEngage`.
```

<Global />
Expand Down
47 changes: 24 additions & 23 deletions docs/docs/cmd/cli/cli-doctor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This command gets all the necessary diagnostic information needed to triage and

## Examples

Retrieve diagnostic information
Retrieve diagnostic information.

```sh
m365 cli doctor
Expand All @@ -42,43 +42,45 @@ m365 cli doctor
},
"cliVersion": "6.1.0",
"nodeVersion": "v16.13.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEntraAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliEntraAppTenant": "common",
"authMode": "deviceCode",
"cliEnvironment": "",
"cliConfig": {
"output": "json",
"showHelpOnFailure": false
},
"roles": [],
"scopes": [
"AllSites.FullControl"
]
"scopes": {
"https://graph.microsoft.com": [
"AllSites.FullControl"
]
}
}
```

</TabItem>
<TabItem value="Text">

```text
authMode : DeviceCode
cliAadAppId : 31359c7f-bd7e-475c-86db-fdb8c937548e
cliAadAppTenant: common
cliConfig : {"output":"json","showHelpOnFailure":false}
cliEnvironment :
cliVersion : 6.1.0
nodeVersion : v16.13.0
os : {"platform":"win32","version":"Windows 10 Pro","release":"10.0.19045"}
roles : []
scopes : ["AllSites.FullControl"]
authMode : deviceCode
cliConfig : {"output":"json","showHelpOnFailure":false}
cliEntraAppId : 31359c7f-bd7e-475c-86db-fdb8c937548e
cliEntraAppTenant: common
cliEnvironment :
cliVersion : 6.1.0
nodeVersion : v16.13.0
os : {"platform":"win32","version":"Windows 10 Pro","release":"10.0.19045"}
roles : []
scopes : {"https://graph.microsoft.com":["AllSites.FullControl"]}
```

</TabItem>
<TabItem value="CSV">

```csv
os,cliVersion,nodeVersion,cliAadAppId,cliAadAppTenant,authMode,cliEnvironment,cliConfig,roles,scopes
"{""platform"":""win32"",""version"":""Windows 10 Pro"",""release"":""10.0.19045""}",6.1.0,v16.13.0,31359c7f-bd7e-475c-86db-fdb8c937548e,common,DeviceCode,,"{""output"":""json"",""showHelpOnFailure"":false}",[],"[""AllSites.FullControl""]"
os,cliVersion,nodeVersion,cliEntraAppId,cliEntraAppTenant,authMode,cliEnvironment,cliConfig,roles,scopes
"{""platform"":""win32"",""version"":""Windows 10 Pro"",""release"":""10.0.19045""}",6.1.0,v16.13.0,31359c7f-bd7e-475c-86db-fdb8c937548e,common,deviceCode,,"{""output"":""json"",""showHelpOnFailure"":false}",[],"{""https://graph.microsoft.com"":[""AllSites.FullControl""]}"
```

</TabItem>
Expand All @@ -93,12 +95,11 @@ m365 cli doctor
---------|-------
cliVersion | 6.1.0
nodeVersion | v16.13.0
cliAadAppId | 31359c7f-bd7e-475c-86db-fdb8c937548e
cliAadAppTenant | common
authMode | DeviceCode
cliEntraAppId | 31359c7f-bd7e-475c-86db-fdb8c937548e
cliEntraAppTenant | common
authMode | deviceCode
cliEnvironment |
```

</TabItem>
</Tabs>

Loading