Skip to main content
Version: 3.0

Retrieve

Project Secrets can be retrieved either via the Loft CLI or using kubectl.

Retrieve via Loft CLI

To get a list of project secrets using the Loft CLI, run the following command:

loft get secret --project default

Retrieve via kubectl

To get a list of project secrets using kubectl, run the following command:

kubectl get secrets --all-namespaces --selector loft.sh/project-secret

If you want to only list project secrets for a project, add the project's namespace to the command:

kubectl get secrets --namespace loft-project-default --selector loft.sh/project-secret