# LB2.0-RC7:  Howto pass change log properties via commandline?

**URL:** https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001
**Category:** General Discussion
**Created:** [December 13, 2010, 3:35pm UTC](https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001 "2010-12-13T15:35:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![franksch\_lb](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@franksch\_lb](https://forum.liquibase.org/u/franksch_lb)
#### Post date: [December 13, 2010, 3:35pm UTC](https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001/1 "2010-12-13T15:35:00Z")

</div>

Hi all,  
I am trying to pass change log properties on a Win commandline to LB 2.0-RC7 (syntax: --D\<property.name\>=\<property.value\>), but face following error:  
&nbsp; Unknown parameter: ‘D\<property.name\>’ (pls. see below)

Is there anyone who can give me a hint?  
-Thanks in advance!!  
Frank

My Commandline:  
%LIQUIBASE\_HOME%\liquibase --username=%LB\_USR% --password=%LB\_PWD% --url="%LB\_RUN\_URL%" --driver=oracle.jdbc.OracleDriver --classpath="%LIQUIBASE\_HOME%\lib\ojdbc6.jar" --defaultSchemaName=%LB\_SCHEMA% --logLevel=info --contexts=%LB\_CONTEXT% --changeLogFile=".\myChangelog.xml" --Dliquibase.update.schema=%LB\_SCHEMA%,liquibase.update.user=%LB\_USR% update

My Errors:  
&nbsp; Unknown parameter: ‘Dliquibase.update.schema’

---

<div class="post-metadata">

### Author: ![franksch\_lb](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@franksch\_lb](https://forum.liquibase.org/u/franksch_lb)
#### Post date: [December 13, 2010, 3:35pm UTC](https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001/2 "2010-12-13T15:35:00Z")

</div>

Ok. found this one by myself, too ;-)&nbsp; (I oversaw the last example)

One has to call LB via Java -jar, and the change log properties have to be passed one by one last after the command key word, the other (mandatory) properties have to be in a liquibase.properties file:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; java -jar %LIQUIBASE\_HOME%\liquibase.jar&nbsp; update -Dliquibase.update.schema=%LB\_SCHEMA% -Dliquibase.update.user=%LB\_USR%

Now LB accepts the change log properties.

---

<div class="post-metadata">

### Author: ![ljnelson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ljnelson/32/120_2.png) [@ljnelson](https://forum.liquibase.org/u/ljnelson)
#### Post date: [December 13, 2010, 3:35pm UTC](https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001/3 "2010-12-13T15:35:00Z")

</div>

> _Originally posted by: FrankSCH_  
> Ok. found this one by myself, too ;-)&nbsp; &nbsp;(I oversaw the last example)
> 
> One has to call LB via Java -jar, and the change log properties have to be passed one by one last after the command key word, the other (mandatory) properties have to be in a liquibase.properties file:
> 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; java -jar %LIQUIBASE\_HOME%\liquibase.jar&nbsp; update -Dliquibase.update.schema=%LB\_SCHEMA% -Dliquibase.update.user=%LB\_USR%
> 
> Now LB accepts the change log properties.

Not sure if it matters, but in your previous example you had double hyphens in front of the “D”.&nbsp; Maybe it was as simple as that?

Best,  
Laird

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [December 13, 2010, 3:35pm UTC](https://forum.liquibase.org/t/lb2-0-rc7-howto-pass-change-log-properties-via-commandline/1001/4 "2010-12-13T15:35:00Z")

</div>

Yes, it does expect -D not --D

Nathan
