Sha256: f993f01773d48e5bd92c9707d91785e8ca5e0ab677dcab55bf0bb94062d13581

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

---
title: cb deploy
reference: true
---

## Usage

    cb deploy

## Description

Deploy codebuild project.

## Examples

    cb deploy PROJECT_NAME # explicitly specify project-name
    cb deploy # infers the CodeBuild name from the parent folder

It is useful to just see the generated CloudFormation template with `--noop` mode:

    cb deploy PROJECT_NAME --noop # see generated CloudFormation template

## Types

By default, the codebuild tool looks up files in the `.codebuild` folder.  Example:

    .codebuild/buildspec.yml
    .codebuild/project.rb
    .codebuild/role.rb

### Examples

    cb deploy PROJECT_NAME --type deploy

This will look up buildspec.yml, project.rb, and role.rb files in the `.codebuild/deploy` folder. So:

    .codebuild/deploy/buildspec.yml
    .codebuild/deploy/project.rb
    .codebuild/deploy/role.rb

Likewise `cb deploy PROJECT_NAME --type unit` would result in:

    .codebuild/unit/buildspec.yml
    .codebuild/unit/project.rb
    .codebuild/unit/role.rb


## Options

```
[--type=TYPE]                # folder to use within .codebuild folder for different build types
[--stack-name=STACK_NAME]    # Override the generated stack name. If you use this you must always specify it
[--wait], [--no-wait]        # Wait for operation to complete
                             # Default: true
[--verbose], [--no-verbose]  
[--noop], [--no-noop]        
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codebuild-0.6.3 docs/_reference/cb-deploy.md
codebuild-0.6.2 docs/_reference/cb-deploy.md