Light Logo
CLI (v0.49.0)Reference

wriftai model-versions list

CLI reference for wriftai model-versions list

wriftai model-versions list

List model versions

wriftai model-versions list [flags]

Examples

  List model versions. By default, the first page is returned
  $ wriftai model-versions list --model johndoe/fraud-detector

  List model versions with a custom number of results per page. By default, the first page is returned
  $ wriftai model-versions list --model johndoe/fraud-detector --page-size 10

  Retrieve a page using a specific cursor
  $ wriftai model-versions list --model johndoe/fraud-detector --cursor Y3Vyc29yLXZhbHVlLXRlc3Q=

  Paginate through the next pages until the end using jq
  $ cursor=""
  $ while true; do
      resp=$(wriftai model-versions list --model johndoe/fraud-detector --cursor "$cursor")
      echo "$resp" | jq .
      cursor=$(echo "$resp" | jq -r '.next_cursor // empty')
      [ -z "$cursor" ] && break
    done

  Paginate through the previous pages until the beginning using jq
  $ cursor="Y3Vyc29yLXZhbHVlLXRlc3Q="   # some current page cursor
  $ while true; do
      resp=$(wriftai model-versions list --model johndoe/fraud-detector --cursor "$cursor")
      echo "$resp" | jq .
      cursor=$(echo "$resp" | jq -r '.previous_cursor // empty')
      [ -z "$cursor" ] && break
    done

Options

      --cursor string   Pagination cursor
  -h, --help            help for list
      --model string    Model identifier in owner/name format (required)
  -o, --output format   Set output format. Supported formats: json, yaml (default json)
      --page-size int   Number of items per page

Options inherited from parent commands

      --debug   Enable debug mode

SEE ALSO