Skip to content

canvas folders resolve-path

canvas folders resolve-path

Resolve a folder path

Synopsis

Resolve a full folder path and return the folder hierarchy.

Returns all folders from root to the specified path, in order. Omit --path to get the root folder.

Examples:

canvas folders resolve-path --course-id 123 --path "lectures/week1"
canvas folders resolve-path --group-id 456 --path "shared"
canvas folders resolve-path --user-id 789
canvas folders resolve-path [flags]

Options

      --course-id int   Course ID
      --group-id int    Group ID
  -h, --help            help for resolve-path
      --path string     Full folder path to resolve (e.g. 'lectures/week1')
      --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