Get

Learn how to list deployments.

Command

$ vela get deployment <parameters...> <arguments...>

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the deploymentsVELA_ORG, DEPLOYMENT_ORG
reponame of repository for the deploymentsVELA_REPO, DEPLOYMENT_REPO
outputformat the output for the deploymentsVELA_OUTPUT, DEPLOYMENT_OUTPUT
pageprints a specific page of deploymentsVELA_PAGE, DEPLOYMENT_PAGE
per.pagenumber of deployments to print per pageVELA_PER_PAGE, DEPLOYMENT_PER_PAGE

Sample

Request

$ pwd
~/github/octocat
$ vela get deployment

Targeted Request

$ vela get deployment --org github --repo octocat

Response generated from successful CLI command

ID  TASK         USER     REF     TARGET
2   deploy:vela  octocat  main  production
1   deploy:vela  octocat  main  production

Examples

EXAMPLES:
  1. Get deployments for a repository.
    $ vela get deployment --org MyOrg --repo MyRepo
  2. Get deployments for a repository with wide view output.
    $ vela get deployment --org MyOrg --repo MyRepo --output wide
  3. Get deployments for a repository with yaml output.
    $ vela get deployment --org MyOrg --repo MyRepo --output yaml
  4. Get deployments for a repository with json output.
    $ vela get deployment --org MyOrg --repo MyRepo --output json
  5. Get deployments for a repository when config or environment variables are set.
    $ vela get deployment
Last modified September 16, 2022: chore: use main as default (#324) (400aa851)