You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Liquibase命令行含连字符的命令执行失败问题求助

Issue with Hyphenated Liquibase Commands (rollback-count, update-to-tag) Failing to Execute

I've only been working with Liquibase for a week, and I'm stuck on a critical technical issue right now. Whenever I try to run Liquibase commands with hyphens (like rollback-count or update-to-tag), both of the execution methods I've tried throw errors.

First Execution Method (No --command Flag, Following Official Docs)

I ran the command exactly as shown in the official documentation:

liquibase --changelog-file=mychangelog.sql rollback-count 1

This returned the error:

Unexpected value ‘rollback-count’, options must start with a '–'

Second Execution Method (Using --command Flag)

I tried wrapping the hyphenated command with the --command option, using this syntax:

liquibase --changelog-file=mychangelog.sql --command=rollback-count 1

But this also failed, giving me the error:

Unexpected value ‘1’, options must start with a '–'

The frustrating part is that commands without hyphens (like update or rollback tag1.1) work flawlessly. I can't pinpoint why these hyphenated commands won't execute regardless of which approach I take.

Could anyone share some insight or a solution to this problem? I'd be extremely grateful for any help!

内容的提问来源于stack exchange,提问作者Minh Tran

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.28 19:12:51