CLI (v0.40.0)Reference
wriftai users search
CLI reference for wriftai users search
wriftai users search
Search users
wriftai users search [flags]Examples
Search users using a query string. By default, the first page is returned
$ wriftai users search --q "John"
Search with a custom number of results per page. By default, the first page is returned
$ wriftai users search --q "Python" --page-size 10
Retrieve a page using a specific cursor
$ wriftai users search --q "Houston" --cursor Y3Vyc29yLXZhbHVlLXRlc3Q=
Paginate through the next pages until the end using jq
$ cursor=""
$ while true; do
resp=$(wriftai users search --q "John Doe" --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 users search --q "John Doe" --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 search
-o, --output format Set output format. Supported formats: json, yaml (default json)
--page-size int Number of items per page
--q string Search query (required)Options inherited from parent commands
--debug Enable debug modeSEE ALSO
- wriftai users - Operations related to users on WriftAI