Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
glab(1) 								 glab(1)

NAME
     glab-search-semantic - Search project code using natural language.

SYNOPSIS
     glab search semantic [flags]

DESCRIPTION
     Search project code using natural language (semantic similarity).

     Requires the project to have semantic code search enabled via GitLab Duo.

     This  feature  is	in  beta  and might not be ready for production use.  It
     might be unstable and breaking changes can occur outside of major releases.
     For   more   information,	  see	 https://docs.gitlab.com/policy/develop-
     ment_stages_support/.

OPTIONS
     -d, --directory-path=""	  Restrict search to files under this path (e.g.
     app/services/).

     --jq=""	  Filter JSON output with a jq expression.

     --knn=0	  Nearest neighbours to retrieve (1a100). Defaults to 64 server-
     side.

     -l,  --limit=0	  Maximum  number  of  results	(1a100).  Defaults to 20
     server-side.

     -F, --output="text"      Format output as: text, json.

     -q, --query=""	 Natural language search query.

OPTIONS INHERITED FROM PARENT COMMANDS
     -h, --help[=false]      Show help for this command.

     -R, --repo=""	Select another repository. You can use either OWNER/REPO
     or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

EXAMPLE
     # Search for authentication-related code in the current project
     glab search semantic -q "authentication middleware"

     # Search within a specific directory
     glab search semantic -q "rate limiting" -d app/services/

     # Search in a specific project with JSON output
     glab search semantic -q "CI pipeline triggers" -R gitlab-org/gitlab --output json

     # Limit results
     glab search semantic -q "database migrations" --limit 5

SEE ALSO
     glab-search(1)

Auto generated by spf13/cobra	    Aug 2026				 glab(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=glab-search-semantic&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help