---
title: "alpacon agent"
description: "Manage Alpamon agents from the CLI. Find commands to restart or upgrade an agent, install alpamon-pam, and check the flags before changing a remote server."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon agent

Manage the Alpamon agent on a remote server.

## Usage

`alpacon agent [flags]`

`alpacon agent [command]`

## Key facts

- Choose `restart`, `upgrade`, or `install-pam`.
- Pass a server name to the subcommand.
- Restart and upgrade may refuse while the server has active user work.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | help for agent | `false` |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

Inspect the restart command

```bash
alpacon agent restart --help
```

## Related commands

  
    Install alpamon-pam on the server
  
  
    Restart server's agent
  
  
    Upgrade server's agent

Source: https://docs.alpacax.com/reference/cli/agent/
