Skip to content

Commit

Permalink
Rename options. Closes pnp#4467
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh7019 committed Jul 15, 2023
1 parent 4bb805e commit eb4a963
Show file tree
Hide file tree
Showing 96 changed files with 570 additions and 522 deletions.
22 changes: 11 additions & 11 deletions docs/docs/cmd/aad/user/user-set.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ m365 aad user set [options]
## Options

```md definition-list
`-i, --objectId [objectId]`
: The object ID of the user to update. Specify `objectId` or `userPrincipalName` but not both.
`-i, --id [id]`
: The object ID of the user to update. Specify `id` or `userName` but not both.

`-n, --userPrincipalName [userPrincipalName]`
: User principal name of the user to update. Specify `objectId` or `userPrincipalName` but not both.
`-n, --userName [userName]`
: User principal name of the user to update. Specify `id` or `userName` but not both.

`--accountEnabled [accountEnabled]`
: Boolean value specifying whether the account is enabled. Valid values are `true` or `false`.
Expand Down Expand Up @@ -87,36 +87,36 @@ If the user with the specified ID or username doesn't exist, or if the specified
Update specific property _department_ of user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_

```sh
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --Department IT
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --Department IT
```

Update multiple properties of user by name
```sh
m365 aad user set --userPrincipalName [email protected] --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York"
m365 aad user set --userName [email protected] --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York"
```

Enable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_

```sh
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true
```

Disable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_

```sh
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false
```

Reset password of a given user by userPrincipalName and require the user to change the password on the next sign in
Reset password of a given user by userName and require the user to change the password on the next sign in

```sh
m365 aad user set --userPrincipalName [email protected] --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn
m365 aad user set --userName [email protected] --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn
```

Change password of the currently logged in user

```sh
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24
```

Updates a user with a manager
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/flow/flow-enable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ If the Power Automate flow with the name you specified doesn't exist, you will g
Enables Power Automate flow owned by the currently signed-in user

```sh
m365 flow enable --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d
m365 flow enable --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d
```

Enables Power Automate flow owned by another user

```sh
m365 flow enable --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --asAdmin
m365 flow enable --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --asAdmin
```

## Response
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/cmd/pa/app/app-consent-set.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ m365 pa app consent set [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment.

`-n, --name <name>`
Expand All @@ -37,13 +37,13 @@ This command only works for canvas apps.
Enables the bypass for the specified canvas app

```sh
m365 pa app consent set --environment 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass true
m365 pa app consent set --environmentName 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass true
```

Disables the bypass consent for the specified canvas app

```sh
m365 pa app consent set --environment 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass false --force
m365 pa app consent set --environmentName 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass false --force
```

## Response
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/cmd/pa/app/app-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ m365 pa app export [options]
`-i, --id <id>`
: The id of the Power App to export

`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment for which to export the app

`-n, --packageDisplayName [packageDisplayName]`
Expand All @@ -42,13 +42,13 @@ m365 pa app export [options]
Export the specified Power App as a ZIP file

```sh
m365 pa app export --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 3989cb59-ce1a-4a5c-bb78-257c5c39381d
m365 pa app export --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 3989cb59-ce1a-4a5c-bb78-257c5c39381d --packageDisplayName "PowerApp"
```

Export the specified Power App as a ZIP file with the package displayname, package description, the one who created it, the package source environment and the path

```sh
m365 pa app export --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 3989cb59-ce1a-4a5c-bb78-257c5c39381d --packageDisplayName "PowerApp" --packageDescription "Power App Description" --packageCreatedBy "John Doe" --packageSourceEnvironment "Contoso" --path "C:/Users/John/Documents"
m365 pa app export --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 3989cb59-ce1a-4a5c-bb78-257c5c39381d --packageDisplayName "PowerApp" --packageDescription "Power App Description" --packageCreatedBy "John Doe" --packageSourceEnvironment "Contoso" --path "C:/Users/John/Documents"
```

## Response
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/pa/app/app-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pa app list [options]
## Options

```md definition-list
`-e, --environment [environment]`
`-e, --environmentName [environmentName]`
: The name of the environment for which to retrieve available apps

`--asAdmin`
Expand Down Expand Up @@ -47,7 +47,7 @@ m365 pa app list
List all apps in a given environment

```sh
m365 pa app list --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
m365 pa app list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
```

## Response
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pp aibuildermodel get [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment

`-i, --id [id]`
Expand All @@ -35,13 +35,13 @@ m365 pp aibuildermodel get [options]
Get an AI Builder model in a specific environment

```sh
m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "Document Processing 11/29/2022, 12:58:43 PM"
m365 pp aibuildermodel get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "Document Processing 11/29/2022, 12:58:43 PM"
```

Get an AI Builder models in a specific environment by id as admin

```sh
m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613" --asAdmin
m365 pp aibuildermodel get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613" --asAdmin
```

## Response
Expand Down Expand Up @@ -111,7 +111,7 @@ m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340a
<TabItem value="Markdown">

```md
# pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613"
# pp aibuildermodel get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613"

Date: 6/2/2023

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pp aibuildermodel list [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment

`--asAdmin`
Expand All @@ -29,13 +29,13 @@ m365 pp aibuildermodel list [options]
List all AI Builder models in a specific environment

```sh
m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
m365 pp aibuildermodel list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
```

List all AI Builder models in a specific environment as admin

```sh
m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
m365 pp aibuildermodel list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
```

## Response
Expand Down Expand Up @@ -107,7 +107,7 @@ m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340
<TabItem value="Markdown">

```md
# pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
# pp aibuildermodel list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"

Date: 9/1/2023

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ m365 pp aibuildermodel remove [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment.

`-i, --id [id]`
Expand All @@ -36,19 +36,19 @@ m365 pp aibuildermodel remove [options]
Removes the AI builder model owned by the currently signed-in user based on the name parameter

```sh
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name"
m365 pp aibuildermodel remove --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name"
```

Removes the AI builder model owned by the currently signed-in user based on the name parameter without confirmation

```sh
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name" --force
m365 pp aibuildermodel remove --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name" --force
```

Removes the AI builder model owned by another user based on the id parameter

```sh
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 9d9a13d0-6255-ed11-bba2-000d3adf774e --asAdmin
m365 pp aibuildermodel remove --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 9d9a13d0-6255-ed11-bba2-000d3adf774e --asAdmin
```


Expand Down
12 changes: 6 additions & 6 deletions docs/docs/cmd/pp/card/card-clone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pp card clone [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment.

`--newName <newName>`
Expand All @@ -38,25 +38,25 @@ m365 pp card clone [options]
Clones a specific card in a specific environment based on name.

```sh
m365 pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card"
m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card"
```

Clones a specific card in a specific environment based on name as admin.

```sh
m365 pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card" --asAdmin
m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card" --asAdmin
```

Clones a specific card in a specific environment based on id.

```sh
m365 pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"
m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"
```

Clones a specific card in a specific environment based on id as admin.

```sh
m365 pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card" --asAdmin
m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card" --asAdmin
```

## Response
Expand Down Expand Up @@ -89,7 +89,7 @@ m365 pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
<TabItem value="Markdown">

```md
# pp card clone --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"
# pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"

Date: 9/1/2023

Expand Down
12 changes: 6 additions & 6 deletions docs/docs/cmd/pp/card/card-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pp card get [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment.

`-i, --id [id]`
Expand All @@ -35,25 +35,25 @@ m365 pp card get [options]
Get a specific card in a specific environment based on name

```sh
m365 pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card"
m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card"
```

Get a specific card in a specific environment based on name as admin

```sh
m365 pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --asAdmin
m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --asAdmin
```

Get a specific card in a specific environment based on id

```sh
m365 pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa"
m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa"
```

Get a specific card in a specific environment based on id as admin

```sh
m365 pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --asAdmin
m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --asAdmin
```

## Response
Expand Down Expand Up @@ -134,7 +134,7 @@ m365 pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --
<TabItem value="Markdown">

```md
# pp card get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "0eab9392-7354-ed11-bba2-000d3adf774e"
# pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "0eab9392-7354-ed11-bba2-000d3adf774e"

Date: 9/1/2023

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/cmd/pp/card/card-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ m365 pp card list [options]
## Options

```md definition-list
`-e, --environment <environment>`
`-e, --environmentName <environmentName>`
: The name of the environment.

`--asAdmin`
Expand All @@ -29,13 +29,13 @@ m365 pp card list [options]
List cards in a specific environment.

```sh
m365 pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
m365 pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
```

List cards in a specific environment as admin.

```sh
m365 pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
m365 pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
```

## Response
Expand Down Expand Up @@ -116,7 +116,7 @@ m365 pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" -
<TabItem value="Markdown">

```md
# pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
# pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"

Date: 9/1/2023

Expand Down
Loading

0 comments on commit eb4a963

Please sign in to comment.