io7m | single-page | multi-page | epub | Cedarbridge User Manual 2.0.0
4.2. check
Previous
4. Command-Line Interface
Up
4.4. document
Next

# 4.3. compile

- 4.3.1. Name
- 4.3.2. Description
- 4.3.3. Examples

## 4.3.1. Name

1
compile - Compile cedarbridge sources

## 4.3.2. Description

1
The compile command compiles cedarbridge sources.

### 4.3.2.2. Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--verbose | CLPLogLevel | false | Set the minimum logging verbosity level.
--file | List | false | The file(s) to type-check
--include | List | false | The directories containing source files
--output-directory | Path | true | The output directory containing generated files
--no-core | boolean | false | Disable registration of the core com.io7m.cedarbridge package
--language | String | true | The language name used to select a code generator

## 4.3.3. Examples

### 4.3.3.1. Example

    $ cedarbridge compile --file invalid.cbs --language 'Java 17+'
    ERROR: invalid.cbs:3:1: Name "T" has already been defined.
      Specification: https://www.io7m.com/software/cedarbridge/specification/index.xhtml#id_1cf38aec-7544-4b5e-a5ac-bb01567ffe77
    (record T))
    ^
      See invalid.cbs:2:1:
    (record T))
    ^

    $ cedarbridge compile --file valid.cbs --language 'Java 17+'

4.2. check
Previous
4. Command-Line Interface
Up
4.4. document
Next
io7m | single-page | multi-page | epub | Cedarbridge User Manual 2.0.0