Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Access
Results will update as you type.
  • Getting Started
  • Deployment
    • How to Deploy the CloudGen Access Proxy
    • How to Install the CloudGen Access User Directory Connector
    • How to Deploy the CloudGen Access Application
    • How to Deploy the CloudGen Access CLI
      • Compile from Source
    • CloudGen Access on a Virtual Appliance
  • CloudGen Access Console
  • CloudGen Access Application
  • CloudGen Access User Directory Connector
  • CloudGen Access Proxy
  • CloudGen Access CLI Client
  • FAQ
  • Best Practices
  • Maintenance
  • Troubleshooting
  • Release Notes
  • Glossary
  • Security Advisories

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Compile from Source
    Published Mar 13

    Compile from Source

    Mar 13, 2026
    Subscribe

    Compiling access-cli from source is recommended only if you intend to make changes to its source code. Otherwise, Barracuda Networks recommends installing access-cli via Homebrew or from the packages available on the releases page.

    Prerequisites

    • Git

    • Go (version 1.13 or higher)

    • go-swagger – access-cli is developed and tested using v0.21.0

    Obtaining the Code

    access-cli uses the modules support introduced in Go 1.11, which means you are not forced to place the code in a specific path under GOPATH. You can clone the repository into any folder:

    git clone https://github.com/barracuda-cloudgen-access/access-cli cd access-cli

    You can also clone the repo into the usual $GOPATH/src/github.com/barracuda-cloudgen-access/access-cli path, but keep in mind that the project will not compile until the next step is complete (i.e., go get github.com/barracuda-cloudgen-access/access-cli will always fail).

    Generating Code from the Swagger Specification

    After installing go-swagger, run the following command on the root of this repo:

    swagger generate client -f swagger.yml

    This will generate the client and models packages. The code in the cmd package depends on these.

    Compiling

    Simply run go build. Because we are using Go modules, Go will take care of downloading the correct versions of the dependencies.

    You should now have a access-cli executable. You can install the package, if you wish, which will place the binary in $GOPATH/bin.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 12, "requestCorrelationId": "e04f646fd35a45749aab996997ae8670"}