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 Default Description
--help Print help information
--variable -v Variables list
--advanced Advanced composition
--compose-file -c Path to docker-compose.yaml file to use to create the resource. required

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