How to use Hammer cli to rebuild host

Problem: When I update a host ,how to do secondary construction through CLI command?
I exec “hammer -u admin -p 123456 host rebuild-config --id 1” .it return "Configuration successfully rebuilt ".But GUI is not change build state.
Expected outcome:
Through CLI rebuild host.
Foreman and Proxy versions:
3.0
Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

Hi @test12,

Although there is no dedicated command for host rebuild for now, you can try to run

hammer host update --id 1 --build true

This should mark that the host should rebuild on the next boot.

1 Like

ok! Thanks!