# How could i have changeLog in YAML Format

**URL:** https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029
**Category:** General Discussion
**Created:** [November 5, 2019, 2:12pm UTC](https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029 "2019-11-05T14:12:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Couas](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@Couas](https://forum.liquibase.org/u/Couas)
#### Post date: [November 5, 2019, 2:12pm UTC](https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029/1 "2019-11-05T14:12:00Z")

</div>

Hi,

How could i have changeLog in YAML Format not in XML ?

Regards

Phil

---

<div class="post-metadata">

### Author: ![un1382561729492r88id](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@un1382561729492r88id](https://forum.liquibase.org/u/un1382561729492r88id)
#### Post date: [November 5, 2019, 2:12pm UTC](https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029/2 "2019-11-05T14:12:00Z")

</div>

That’s kind of a broad question. Do you already know how to do things in XML? Do you have an existing database you are starting with, or are you starting with a new project and an empty database?&nbsp;

The basics are shown on this page:&nbsp;[https://www.liquibase.org/documentation/yaml\_format.html](https://www.liquibase.org/documentation/yaml_format.html)

Each of the different change types have documentation and examples in XML, yaml, and json formats also - so if you go to&nbsp;[https://www.liquibase.org/documentation/changes/add\_lookup\_table.html](https://www.liquibase.org/documentation/changes/add_lookup_table.html), in the middle of the page you will see an example of how to use the ‘add lookup table’ change type in yaml - it looks like this:

```
: addLookupTable-example liquibase-docs LEGACY : : fk_address_state state address char(2) abbreviation cat state
```

Steve Donie  
Principal Software Engineer  
Datical, Inc. [http://www.datical.com/](http://www.datical.com/)

---

<div class="post-metadata">

### Author: ![un80265248687327692r](https://avatars.discourse-cdn.com/v4/letter/u/f07891/32.png) [@un80265248687327692r](https://forum.liquibase.org/u/un80265248687327692r)
#### Post date: [November 5, 2019, 2:12pm UTC](https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029/3 "2019-11-05T14:12:00Z")

</div>

Hi

I have an existing ORACLE database and i am new to LIQUIBASE, i want generat YAML files

Regards

---

<div class="post-metadata">

### Author: ![un1382561729492r88id](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@un1382561729492r88id](https://forum.liquibase.org/u/un1382561729492r88id)
#### Post date: [November 5, 2019, 2:12pm UTC](https://forum.liquibase.org/t/how-could-i-have-changelog-in-yaml-format/4029/4 "2019-11-05T14:12:00Z")

</div>

I would start by looking at this page in the documentation - it describes what you need to do for the most part.

[https://www.liquibase.org/documentation/existing\_project.html](https://www.liquibase.org/documentation/existing_project.html)

The example there could be more detailed, but the important thing for you is knowing that the generateChangeLog command can generate any format of changelog. Liquibase just looks at the extension of the changelog filename you supply and generates a file of that format.&nbsp;

So if you run

&nbsp; liquibase --changeLogFile=changelog.xml generateChangeLog&nbsp;

it will generate an XML formatted changelog. But if you run it like&nbsp;

liquibase --changeLogFile=changelog.yaml generateChangeLog&nbsp;

it will generate a yaml formatted changelog.&nbsp;

Steve Donie  
Principal Software Engineer  
Datical, Inc. [http://www.datical.com/](http://www.datical.com/)
