Skip to main content

copyPackage

Copy package params, version, and release strategy from one package to another with optional overrides.

Both packages must be from the same manifest (e.g., api-prod-database and api-staging-database). Fields marked with $md.copyable: false in the params schema will be excluded from copying. The merged params are deep merged with the overrides, allowing you to override specific values. Version and release strategy are always copied from the source package. Secrets can optionally be copied by setting includeSecrets to true.

copyPackage(
organizationId: ID!
srcPackageId: ID!
dstPackageId: ID!
overrides: JSON
includeSecrets: Boolean
): PackagePayload

Arguments

copyPackage.organizationId ● ID! non-null scalar

copyPackage.srcPackageId ● ID! non-null scalar

Source package ID, slug, or name prefix to copy from

copyPackage.dstPackageId ● ID! non-null scalar

Destination package ID, slug, or name prefix to copy to

copyPackage.overrides ● JSON scalar

Optional params to override via deep merge

copyPackage.includeSecrets ● Boolean scalar

Whether to copy secrets from source package

Type

PackagePayload object