forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
760 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import Global from '/docs/cmd/_global.mdx'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# spp model apply | ||
|
||
Applies (or syncs) a trained document understanding model to a document library | ||
|
||
## Usage | ||
|
||
```sh | ||
m365 spp model apply [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-u, --siteUrl <siteUrl>` | ||
: The URL of the site where the library is located. | ||
|
||
`--contentCenterUrl <contentCenterUrl>` | ||
: The URL of the content center site where model is located. | ||
|
||
`-i, --id [id]` | ||
: The unique ID of the model to delete. Specify either `id` or `title` but not both. | ||
|
||
`-t, --title [title]` | ||
: The display name (case-sensitive) of the model to apply. Specify either `id` or `title` but not both. | ||
|
||
`--listTitle [listTitle]` | ||
: The title of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. | ||
|
||
`--listId [listId]` | ||
: The ID of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. | ||
|
||
`--listUrl [listUrl]` | ||
: Server or web-relative URL of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. | ||
|
||
`--viewOption [viewOption]` | ||
: Specifies whether to set the new model view as the default view of the library. Allowed values `NewViewAsDefault`, `DoNotChangeDefault`, `TileViewAsDefault`. | ||
``` | ||
|
||
<Global /> | ||
|
||
## Examples | ||
|
||
Applies a trained document understanding model by id to a document library based on the list title. | ||
|
||
```sh | ||
m365 spp model apply --siteUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --id "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --listTitle "Shared Documents" | ||
``` | ||
|
||
Applies a trained document understanding model by title to a document library based on the list title. | ||
|
||
```sh | ||
m365 spp model apply --siteUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listTitle "Shared Documents" | ||
``` | ||
|
||
Applies a trained document understanding model by title to a document library based on the list url. | ||
|
||
```sh | ||
m365 spp model apply --siteUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listUrl "/Shared Documents" | ||
``` | ||
|
||
Applies a trained document understanding model by title to a document library based on the list id. | ||
|
||
```sh | ||
m365 spp model apply --siteUrl "https://contoso.sharepoint.com" --contentCenterUrl "https://contoso.sharepoint.com/sites/ContentCenter" --title "ModelExample" --listId "b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7" | ||
``` | ||
|
||
## Response | ||
|
||
The command won't return a response on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.