Create Composition

Description

Create a composition.

Command

codefresh create composition <name>

Aliases

codefresh create com <name>

Arguments

Option Alias Default Description
name Name of composition

Options

Option Alias Type Default Description
--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

Creating a composition using a docker-compose.yml file

codefresh create composition NAME --compose-file ./docker-compose.yml

Defining composition variables

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