# Scripts

## GlobalProtect VPN auth automatization on MacOS
This guide will help you automate the authentication process for GlobalProtect VPN on macOS using the Dashlane CLI and Siri Shortcuts.
### Install Dashlane CLI tool
https://cli.dashlane.com/install
```bash
brew install dashlane/tap/dashlane-cli
```
Sync Dashline CLI with account
```bash
dcli sync
```
Retrieve the VPN password to clipboard (to test if everything works right)
```bash
dcli password title=<title_of_your_item_with_vpn_password>
```

### Create Siri/Shortcut command
1. Open the Shortcuts app.
2. Click the + button to create a new shortcut.
3. Select Apps and choose Script Editor.
4. Add a Run AppleScript action.
5. Enter your script code (make sure to update the Dashlane item name and email address as needed).
6. Save the shortcut, and you're done!