# Particle setup on cli, automatic wifi

**URL:** <https://community.particle.io/t/particle-setup-on-cli-automatic-wifi/23879>\
**Category:** Firmware\
**Created:** [June 22, 2016, 1:38am UTC](https://community.particle.io/t/particle-setup-on-cli-automatic-wifi/23879 "2016-06-22T01:38:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [June 22, 2016, 6:04am UTC](https://community.particle.io/t/particle-setup-on-cli-automatic-wifi/23879/2 "2016-06-22T06:04:01Z")

</div>

With larger batches like that, it might be more convenient to use `Particle serial wifi ‘ since it’s a lot faster, and doesn’t require you to switch wifi all the time. You could probably even write some sort of script for it 🙂

@wesner0019: dug around some more, and found a script, which might be interesting 😄

> **[Particle-CLI scripts/automation for initial setup on large number of devices](http://community.particle.io/t/particle-cli-scripts-automation-for-initial-setup-on-large-number-of-devices/14265/9?u=moors7)**
>
> Here's an expect script using a \*nix command line (note: not the Particle CLI, just plain old Bash or whatever): #!/usr/bin/expect -f # SSID: # Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: # Wifi Password: eval spawn particle serial wifi expect...

---

_[View the full topic](https://community.particle.io/t/particle-setup-on-cli-automatic-wifi/23879)._
