Usage
m365 onenote notebook add
Description
Create a new OneNote notebook.
Options
| Option |
Description |
-n, --name <name> |
Name of the notebook. Notebook names must be unique. The name cannot contain more than 128 characters or contain the following characters: ?*/:<> |
--userId [userId] |
Id of the user. Use either userId or userName, but not both. |
--userName [userName] |
Name of the user. Use either userId or userName, but not both. |
--groupId [groupId] |
Id of the SharePoint group. Use either groupName or groupId, but not both. |
--groupName [groupName] |
Name of the SharePoint group. Use either groupName or groupId, but not both. |
-u, --webUrl [webUrl] |
URL of the SharePoint site. |
Additional Info
Create notebook (MS Graph docs)
Examples
Create a Microsoft OneNote notebook Private Notebook for the currently logged in user
m365 onenote notebook add --name "Private Notebook"
Create a Microsoft OneNote notebook Private Notebook in group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
m365 onenote notebook add --name "Private Notebook" --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
Create a Microsoft OneNote notebook Private Notebook in group My Group
m365 onenote notebook add --name "Private Notebook" --groupName "MyGroup"
Create a Microsoft OneNote notebook Private Notebook for user [email protected]
m365 onenote notebook add --name "Private Notebook" --userName [email protected]
Create a Microsoft OneNote notebook Private Notebook for user 2609af39-7775-4f94-a3dc-0dd67657e900
m365 onenote notebook add --name "Private Notebook" --userId 2609af39-7775-4f94-a3dc-0dd67657e900
Create a Microsoft OneNote notebook Private Notebook for site https://contoso.sharepoint.com/sites/testsite
m365 onenote notebook add --name "Private Notebook" --webUrl https://contoso.sharepoint.com/sites/testsite
Usage
m365 onenote notebook add
Description
Create a new OneNote notebook.
Options
-n, --name <name>--userId [userId]--userName [userName]--groupId [groupId]--groupName [groupName]-u, --webUrl [webUrl]Additional Info
Create notebook (MS Graph docs)
Examples
Create a Microsoft OneNote notebook
Private Notebookfor the currently logged in userCreate a Microsoft OneNote notebook
Private Notebookin group233e43d0-dc6a-482e-9b4e-0de7a7bce9b4Create a Microsoft OneNote notebook
Private Notebookin groupMy GroupCreate a Microsoft OneNote notebook
Private Notebookfor user[email protected]Create a Microsoft OneNote notebook
Private Notebookfor user2609af39-7775-4f94-a3dc-0dd67657e900Create a Microsoft OneNote notebook
Private Notebookfor sitehttps://contoso.sharepoint.com/sites/testsite