Skip to main content

secrets

Paperspace Gradient CLI reference guide for secrets.

set​

Set secret

Arguments​

cluster, project, team

Examples​

gradient secrets set project \
--id "prjpkflqz" \
--name "NewKey" \
--value "NewValue"

Options​

NameTypeAttributesDescription
--idstringrequiredEntity ID
--namestringrequiredSecret name
--valuestringrequiredSecret value
--apiKeystringoptionalAPI key to use this time only
--optionsFilestringoptionalPath to YAML with predefined options
--createOptionsFilestringoptionalGenerate template options file

Response​

Set project secret 'NewKey'

list​

List secrets

Arguments​

cluster, project, team

Examples​

gradient secrets list project \
--id "prjpkflqz"

Options​

NameTypeAttributesDescription
--idstringrequiredEntity ID
--apiKeystringoptionalAPI key to use this time only
--optionsFilestringoptionalPath to YAML with predefined options
--createOptionsFilestringoptionalGenerate template options file

Response​

+--------+
| Name |
+--------+
| NewKey |
+--------+

delete​

Delete secret

Arguments​

cluster, project, team

Examples​

gradient secrets delete project \
--id "prjpkflqz" \
--name "NewKey"

Options​

NameTypeAttributesDescription
--idstringrequiredEntity ID
--namestringrequiredSecret name
--apiKeystringoptionalAPI key to use this time only
--optionsFilestringoptionalPath to YAML with predefined options
--createOptionsFilestringoptionalGenerate template options file

Response​

Deleted project secret 'NewKey'