# Automatic deployment
Implement log viewing and automatic deployment using a self-built **[CDC](https://crates.io/crates/pico-cdc)**.
1.install
```bash
cargo install pico-uf2
```
2.modify code
```Rust
#[embassy_executor::main]
async fn main(spawner: Spawner) {
spawner.spawn(usb_cdc::init()).unwrap();
// ......
}
```
**[Complete the example](https://github.com/Jaydar/pico-tools/tree/master/example)**
## Option
```
Arguments:
Input file
Options:
-b, --before Start command sent to COM port, default is "Reboot"
-a, --after Connect to COM after operation, and send command to COM
-o, --output