canvas pages update
canvas pages update¶
Update an existing page
Synopsis¶
Update an existing wiki page.
Examples:
canvas pages update --course-id 123 my-page --title "New Title"
canvas pages update --course-id 123 my-page --body "<p>Updated content</p>"
canvas pages update --course-id 123 my-page --published
Options¶
--body string New page body (HTML)
--course-id int Course ID (required)
--editing-roles string Roles that can edit: teachers,students,members,public
--front-page Set as front page
-h, --help help for update
--notify Notify participants of update
--publish-at string Schedule publication date (ISO 8601)
--published Publish the page
--title string New page title
Options inherited from parent commands¶
--as-user int Masquerade as another user (admin feature, requires permission)
--columns strings Select specific columns to display (comma-separated)
--config string config file (default is $HOME/.canvas-cli/config.yaml)
--dry-run Print curl commands instead of executing requests
--filter string Filter results by text (case-insensitive substring match)
--instance string Canvas instance URL (overrides config)
--limit int Limit number of results for list operations (0 = unlimited)
--no-cache Disable caching of API responses
-o, --output string Output format: table, json, yaml, csv (default "table")
--show-token Show actual token in dry-run output (default: redacted)
--sort string Sort results by field (prefix with - for descending, e.g., -name)
-v, --verbose Enable verbose output
SEE ALSO¶
- canvas pages - Manage Canvas wiki pages