You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Zarf CLI command reference for <code>zarf package sign</code>.
4
+
tableOfContents: false
5
+
---
6
+
7
+
<!-- Page generated by Zarf; DO NOT EDIT -->
8
+
9
+
## zarf package sign
10
+
11
+
Signs an existing Zarf package
12
+
13
+
### Synopsis
14
+
15
+
Signs an existing Zarf package with a private key. The package can be a local tarball or pulled from an OCI registry. The signature is created by signing the zarf.yaml file and does not modify the package checksums.
-k, --key string Public key to verify the existing signature before re-signing (optional)
47
+
--oci-concurrency int Number of concurrent layer operations when pulling or pushing images or packages to/from OCI registries. (default 6)
48
+
-o, --output string Output destination for the signed package. Can be a local directory or an OCI registry URL (oci://). Default: same directory as source package for files, current directory for OCI sources
49
+
--overwrite Overwrite an existing signature if the package is already signed
50
+
--retries int Number of retries to perform for Zarf operations like git/image pushes (default 3)
51
+
--signing-key string Private key for signing packages. Accepts either a local file path or a Cosign-supported key provider (awskms://, gcpkms://, azurekms://, hashivault://)
52
+
--signing-key-pass string Password for encrypted private key
53
+
```
54
+
55
+
### Options inherited from parent commands
56
+
57
+
```
58
+
-a, --architecture string Architecture for OCI images and Zarf packages
59
+
--features stringToString [ALPHA] Provide a comma-separated list of feature names to bools to enable or disable. Ex. --features "foo=true,bar=false,baz=true" (default [])
60
+
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture.
61
+
--log-format string Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console")
--no-color Disable terminal color codes in logging and stdout prints.
64
+
--plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture.
65
+
--tmpdir string Specify the temporary directory to use for intermediate files
66
+
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
67
+
```
68
+
69
+
### SEE ALSO
70
+
71
+
*[zarf package](/commands/zarf_package/) - Zarf package commands for creating, deploying, and inspecting packages
CmdPackagePublishFlagConfirm="Confirms package publish without prompting. Skips prompt for the signing key password"
312
312
CmdPackagePublishFlagFlavor="The flavor of components to include in the resulting package. The flavor will be appended to the package tag"
313
313
314
+
CmdPackageSignShort="Signs an existing Zarf package"
315
+
CmdPackageSignLong="Signs an existing Zarf package with a private key. The package can be a local tarball or pulled from an OCI registry. The signature is created by signing the zarf.yaml file and does not modify the package checksums."
CmdPackageSignFlagSigningKey="Private key for signing packages. Accepts either a local file path or a Cosign-supported key provider (awskms://, gcpkms://, azurekms://, hashivault://)"
333
+
CmdPackageSignFlagSigningKeyPass="Password for encrypted private key"
334
+
CmdPackageSignFlagOutput="Output destination for the signed package. Can be a local directory or an OCI registry URL (oci://). Default: same directory as source package for files, current directory for OCI sources"
335
+
CmdPackageSignFlagOverwrite="Overwrite an existing signature if the package is already signed"
336
+
CmdPackageSignFlagKey="Public key to verify the existing signature before re-signing (optional)"
337
+
314
338
CmdPackagePullShort="Pulls a Zarf package from a remote registry and save to the local file system"
315
339
CmdPackagePullExample=`
316
340
# Pull a package matching the current architecture
0 commit comments