spo page text add
Adds text to a modern page
Usage
m365 spo page text add [options]
Options
-u, --webUrl <webUrl>
URL of the site where the page to add the text to is located.
-n, --pageName <pageName>
Name of the page to which add the text.
-t, --text <text>
Text to add to the page
--section [section]
Number of the section to which the text should be added (1 or higher).
--column [column]
Number of the column in which the text should be added (1 or higher).
--order [order]
Order of the text in the column.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
If the specified pageName
doesn't refer to an existing modern page, you will get a File doesn't exists error.
Examples
Add text to a modern page in the first available location on the page
m365 spo page text add --webUrl https://contoso.sharepoint.com/sites/a-team --pageName page.aspx --text 'Hello world'
Add text to a modern page in the third column of the second section
m365 spo page text add --webUrl https://contoso.sharepoint.com/sites/a-team --pageName page.aspx --text 'Hello world' --section 2 --column 3
Add text at the beginning of the default column on a modern page
m365 spo page text add --webUrl https://contoso.sharepoint.com/sites/a-team --pageName page.aspx --text 'Hello world' --order 1
Response
The command won't return a response on success.