Skip to content

Azure DevOps

Pasknel Ribeiro edited this page Nov 13, 2023 · 3 revisions

Azure DevOps

The epyon azure command can be used to interact with Azure DevOps.

$ epyon azure -h

Options for Azure DevOps Interaction

Usage:
  epyon azure [flags]
  epyon azure [command]

Available Commands:
  download-artifacts Download builds artifacts
  download-repos     Download repositories
  get-builds         Get builds outputs
  list-builds        List builds
  list-pipelines     List Pipelines
  list-projects      List Projects
  list-repos         List Repositories
  list-var-groups    List variable groups

Flags:
  -h, --help           help for azure
  -o, --org string     Organization URL (Ex: https://dev.azure.com/myorg)
  -t, --token string   Access Token

Global Flags:
  -P, --proxy-pass string     Proxy Password
  -X, --proxy-server string   Proxy Server
  -U, --proxy-user string     Proxy User
  -S, --socks-server string   SOCKS5 Server (ip:port)
  -K, --ssl-insecure          SSL Insecure (default true)
  -V, --verbose               Verbose

Use "epyon azure [command] --help" for more information about a command.

Authentication

Organization URL

Use the -o flag to set the organization URL (Example: https://dev.azure.com/myorg)

Authenticating with token

Personal Access Token (PAT) can be specified with the -t flag.

Listing projects

$ epyon azure list-projects -o https://dev.azure.com/myorg -t TOKEN

Listing repositories

$ epyon azure list-repos -o https://dev.azure.com/myorg -t TOKEN

Download repositories (projects)

$ epyon azure download-repos -o https://dev.azure.com/myorg -t TOKEN

Listing pipelines

$ epyon azure list-pipelines -o https://dev.azure.com/myorg -t TOKEN

Listing builds from pipelines

$ epyon azure list-builds -o https://dev.azure.com/myorg -t TOKEN

Download outputs from builds

$ epyon azure get-builds -o https://dev.azure.com/myorg -t TOKEN

Download artifacts from builds

$ epyon azure download-artifacts -o https://dev.azure.com/myorg -t TOKEN

Listing variable groups

$ epyon azure list-var-groups -o https://dev.azure.com/myorg -t TOKEN

Clone this wiki locally