src users get

Flags

Name Description Default Value
-dump-requests Log GraphQL requests and responses to stdout false
-f Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Username}} ({{.DisplayName}})") `{{.
-get-curl Print the curl command for executing this query and exit (WARNING: includes printing your access token!) false
-trace Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing false
-username Look up user by username. (e.g. "alice")

Usage

Usage of 'src users get':
  -dump-requests
    	Log GraphQL requests and responses to stdout
  -f string
    	Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Username}} ({{.DisplayName}})") (default "{{.|json}}")
  -get-curl
    	Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
  -trace
    	Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
  -username string
    	Look up user by username. (e.g. "alice")

Examples:

  Get user with username alice:

    	$ src users get -username=alice