Skip to content

canvas folders create

canvas folders create

Create a folder

Synopsis

Create a new folder in a course, group, user context, or inside a parent folder.

Specify a context (--course-id, --group-id, --user-id) or --parent-folder-id.

Examples:

canvas folders create --course-id 123 --name "Lectures"
canvas folders create --group-id 456 --name "Resources"
canvas folders create --parent-folder-id 101 --name "Week 1"
canvas folders create --course-id 123 --name "Archive" --hidden
canvas folders create [flags]

Options

      --course-id int          Course ID
      --group-id int           Group ID
  -h, --help                   help for create
      --hidden                 Hide the folder from students
      --lock-at string         Lock date (ISO 8601)
      --locked                 Lock the folder
      --name string            Folder name (required)
      --parent-folder-id int   Parent folder ID
      --position int           Sort position
      --unlock-at string       Unlock date (ISO 8601)
      --user-id int            User ID

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")
      --quiet             Suppress informational messages, only output data and errors
      --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

Auto generated by spf13/cobra on 14-Jul-2026