# Agentl Install

These are the "one shot" install scripts.

They:

- download the latest Agentl binary from `http://188.214.37.12/agentl`
- install it locally
- put `agentl` into `PATH`
- configure the relay automatically
- start the agent immediately

## Linux

```bash
curl -fsSL http://188.214.37.12/agentl/install-agentl.sh | bash
```

With explicit `id/password`:

```bash
curl -fsSL http://188.214.37.12/agentl/install-agentl.sh | bash -s -- --id my-server --password 'StrongPass'
```

Installed locations by default:

- binary: `~/.local/share/agentl/agentl`
- wrapper: `~/.local/bin/agentl`

After install:

- run `agentl`
- if no password is saved yet, it will ask for one
- if no `id` is saved yet, it will generate one automatically
- `Ctrl+C` stops the foreground agent

## Windows PowerShell

```powershell
irm http://188.214.37.12/agentl/install-agentl.ps1 | iex
```

With explicit `id/password`:

```powershell
& ([scriptblock]::Create((irm http://188.214.37.12/agentl/install-agentl.ps1))) -Id "my-server" -Password "StrongPass"
```

Installed location by default:

- binary: `%LOCALAPPDATA%\\Agentl\\agentl.exe`

## Windows CMD

```bat
powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "irm http://188.214.37.12/agentl/install-agentl.ps1 | iex"
```

## After Install

Linux:

```bash
agentl
agentl status
agentl credentials
agentl down
```

Windows:

```powershell
agentl
agentl status
agentl credentials
agentl down
```
