canvas sections
canvas sections¶
Manage Canvas course sections
Synopsis¶
Manage Canvas course sections including listing, creating, updating, and deleting sections.
Sections allow you to organize students within a course into groups that can have different due dates, grade visibility settings, or be crosslisted to other courses.
Examples:
canvas sections list --course-id 123
canvas sections get 456
canvas sections create --course-id 123 --name "Section A"
Options¶
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 - Canvas LMS CLI - Interact with Canvas from the command line
- canvas sections create - Create a new section
- canvas sections crosslist - Crosslist a section to another course
- canvas sections delete - Delete a section
- canvas sections get - Get section details
- canvas sections list - List sections in a course
- canvas sections uncrosslist - Return a crosslisted section to its original course
- canvas sections update - Update a section