# Complete setup wizard via CLI

**URL:** <https://forum.gl-inet.com/t/complete-setup-wizard-via-cli/60008>\
**Category:** Router\
**Created:** [June 17, 2025, 8:48pm UTC](https://forum.gl-inet.com/t/complete-setup-wizard-via-cli/60008 "2025-06-17T20:48:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [June 18, 2025, 4:06am UTC](https://forum.gl-inet.com/t/complete-setup-wizard-via-cli/60008/2 "2025-06-18T04:06:03Z")

</div>

Hello,

You can add the following API in the script to complete wizard.

```auto
curl -k http://127.0.0.1/rpc -H 'glinet: 1' -d '{"jsonrpc":"2.0","id":5,"method":"call","params":["","ui","init",{"lang":"en","username":"root","password":"goodlife","security_rule":0}]}'

```

You can define the `language`, `password`, and whether to allow weak passwords `security_rule`

Tips:

1. To execute this API, it needs to SSH login first
2. Before completing wizard, it does not need password to login; after completing wizard, a password you define to re-login SSH

---

_[View the full topic](https://forum.gl-inet.com/t/complete-setup-wizard-via-cli/60008)._
