> For the complete documentation index, see [llms.txt](https://docs.pritunl.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pritunl.com/kb/vpn/client/cli-interface.md).

# Command Line Interface

The `pritunl-client` package is available on Linux for installing the Pritunl Client on servers without the GUI interface.

### Configuring a Profile

To add a profile run the command below with a URI link from the Pritunl server web console.

```shell
# Import Pritunl URI profile
pritunl-client add pritunl://demo.pritunl.com/ku/rBCDSgw5

# Import Pritunl tar profile
pritunl-client add pritunl_user_profile.tar
```

When the profile is first added it must be manually started. First run `pritunl-client list` to get the ID of the profile. Then start the profile, partial IDs can be used. To start the profile with OpenVPN add the argument `--mode=ovpn` for WireGuard use `--mode=wg`.

```shell
pritunl-client list
pritunl-client start 5ac --mode=ovpn
```

All profiles will start on startup and a configuration sync will be done before connecting. If the client disconnects a profile sync will run before reconnecting. This allows making modifications to the Pritunl server without needing to make changes on the client. It is not recommended to configure auto starting profiles that require two-factor authentication.

### macOS

The macOS CLI client is available at `/Applications/Pritunl.app/Contents/Resources/pritunl-client`.

### Windows

The Windows CLI client is available at `C:\Program Files (x86)\Pritunl\pritunl-client.exe`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pritunl.com/kb/vpn/client/cli-interface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
