CLI (v0.40.0)Reference
wriftai authenticated-user models
CLI reference for wriftai authenticated-user models
wriftai authenticated-user models
List models of the authenticated user
wriftai authenticated-user models [flags]Examples
List models of the authenticated user. By default, the first page is returned
$ wriftai authenticated-user models
List models with a custom number of results per page. By default, the first page is returned
$ wriftai authenticated-user models --page-size 10
Retrieve a page using a specific cursor
$ wriftai authenticated-user models --cursor Y3Vyc29yLXZhbHVlLXRlc3Q=
Paginate through the next pages until the end using jq
$ cursor=""
$ while true; do
resp=$(wriftai authenticated-user models --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 authenticated-user models --cursor "$cursor")
echo "$resp" | jq .
cursor=$(echo "$resp" | jq -r '.previous_cursor // empty')
[ -z "$cursor" ] && break
doneOptions
--cursor string Pagination cursor
-h, --help help for models
-o, --output format Set output format. Supported formats: json, yaml (default json)
--page-size int Number of items per pageOptions inherited from parent commands
--debug Enable debug modeSEE ALSO
- wriftai authenticated-user - Operations related to the authenticated user on WriftAI