--- title: "secret ls" description: "The secret ls command description and usage" keywords: ["secret, ls"] --- # secret ls ```Markdown Usage: docker secret ls [OPTIONS] List secrets Aliases: ls, list Options: -q, --quiet Only display IDs ``` Run this command from a manager to list the secrets in the Swarm. On a manager node: ```bash $ docker secret ls ID NAME CREATED UPDATED mhv17xfe3gh6xc4rij5orpfds secret.json 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC ``` ## Related information * [secret create](secret_create.md) * [secret inspect](secret_inspect.md) * [secret rm](secret_rm.md)