Files
podman/docs/source/markdown/podman-secret-ls.1.md
Jakub Guzik 50501f49a3 Add secret list --filter to cli
This PR is a follow-up of #11431. It adds possibility of filtering
secret list based on id and name.

Signed-off-by: Jakub Guzik <jguzik@redhat.com>
2021-12-14 10:41:03 +01:00

1.2 KiB

% podman-secret-ls(1)

NAME

podman-secret-ls - List all available secrets

SYNOPSIS

podman secret ls [options]

DESCRIPTION

Lists all the secrets that exist. The output can be formatted to a Go template using the --format option.

OPTIONS

--format=format

Format secret output using Go template.

--noheading

Omit the table headings from the listing of secrets. .

--filter, -f=filter=value

Filter output based on conditions given. Multiple filters can be given with multiple uses of the --filter option.

Valid filters are listed below:

Filter Description
name [Name] Secret name (accepts regex)
id [ID] Full or partial secret ID

EXAMPLES

$ podman secret ls
$ podman secret ls --format "{{.Name}}"
$ podman secret ls --filter name=confidential

SEE ALSO

podman(1), podman-secret(1)

HISTORY

January 2021, Originally compiled by Ashley Cui acui@redhat.com