Replace Composition

Description

Replace a composition resource.

Command

codefresh replace composition [name]

Aliases

codefresh replace com [name]

Arguments

Option Alias Default Description
name Name of composition

Options

Option Alias Type Default Description
--skip-trigger-validation boolean false Set to true to skip validation (for pipeline replace)
--help Print help information
--filename -f Filename or directory of spec files use to create the resource
--compose-file -c Path to docker-compose.yaml file to use to create the resource. required
--variable -v array Variables list
--advanced -a boolean false Advanced composition

Examples

Replace a composition using a spec file

codefresh replace composition -f ./composition-spec.yml

Replace a composition using options

codefresh replace composition NAME --compose-file ./docker-compose.yml -v key1=value1 -v key2=value2