.nh
.TH "GH-SECRET-LIST" "1" "Oct 2023" "" "GitHub CLI manual"

.SH NAME
.PP
gh-secret-list - List secrets


.SH SYNOPSIS
.PP
\fB\fCgh secret list [flags]\fR


.SH DESCRIPTION
.PP
List secrets on one of the following levels:
- repository (default): available to Actions runs or Dependabot in a repository
- environment: available to Actions runs for a deployment environment in a repository
- organization: available to Actions runs, Dependabot, or Codespaces within an organization
- user: available to Codespaces for your user


.SH OPTIONS
.TP
\fB\fC-a\fR, \fB\fC--app\fR \fB\fC<string>\fR
List secrets for a specific application: {actions|codespaces|dependabot}

.TP
\fB\fC-e\fR, \fB\fC--env\fR \fB\fC<string>\fR
List secrets for an environment

.TP
\fB\fC-q\fR, \fB\fC--jq\fR \fB\fC<expression>\fR
Filter JSON output using a jq expression

.TP
\fB\fC--json\fR \fB\fC<fields>\fR
Output JSON with the specified fields

.TP
\fB\fC-o\fR, \fB\fC--org\fR \fB\fC<string>\fR
List secrets for an organization

.TP
\fB\fC-t\fR, \fB\fC--template\fR \fB\fC<string>\fR
Format JSON output using a Go template; see "gh help formatting"

.TP
\fB\fC-u\fR, \fB\fC--user\fR
List a secret for your user


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.TP
\fB\fC-R\fR, \fB\fC--repo\fR \fB\fC<[HOST/]OWNER/REPO>\fR
Select another repository using the [HOST/]OWNER/REPO format


.SH SEE ALSO
.PP
\fB\fCgh-secret(1)\fR
