canvas assignment-groups create
canvas assignment-groups create¶
Create a new assignment group
Synopsis¶
Create a new assignment group in a course.
Examples:
canvas assignment-groups create --course-id 123 --name "Homework"
canvas assignment-groups create --course-id 123 --name "Exams" --weight 40 --position 2
canvas assignment-groups create --course-id 123 --name "Quizzes" --weight 20 --drop-lowest 1
Options¶
--course-id int Course ID (required)
--drop-highest int Number of highest scores to drop
--drop-lowest int Number of lowest scores to drop
-h, --help help for create
--name string Group name (required)
--position int Position in course
--weight float Group weight percentage (0-100)
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 assignment-groups - Manage Canvas assignment groups