---
title: "alpacon-setup-action"
description: "Install the Alpacon CLI in your GitHub Actions workflow. Required as the first step before using other Alpacon actions."
---

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

# alpacon-setup-action

Installs the Alpacon CLI in your workflow environment. Run this as the first step before using any other Alpacon actions.

## Inputs

This action requires no inputs.

## Usage

```yaml
steps:
  - name: Setup Alpacon CLI
    uses: alpacax/alpacon-setup-action@v1

  - name: Use other Alpacon actions
    uses: alpacax/alpacon-websh-action@v1
    with:
      workspace-url: ${{ secrets.ALPACON_WORKSPACE_URL }}
      api-token: ${{ secrets.ALPACON_SERVICE_TOKEN }}
      target: 'my-server'
      script: echo "Hello"
```

## Supported runners

- `ubuntu-latest` (and other Ubuntu-based runners)

## Notes

- Skips installation if the CLI is already present
- Must run before `alpacon-websh-action`, `alpacon-cp-action`, or `alpacon-common-action`
- Other Alpacon actions handle authentication automatically

## See also

- [Actions reference overview](/reference/actions/)
- [alpacon-websh-action](/reference/actions/websh/)
- [alpacon-cp-action](/reference/actions/cp/)
- [alpacon-common-action](/reference/actions/common/)

## Resources

- [GitHub Marketplace](https://github.com/marketplace/actions/setup-alpacon-cli)
- [Source code](https://github.com/alpacax/alpacon-setup-action)

Source: https://docs.alpacax.com/reference/actions/setup/
