View

Learn how to inspect a deployment.

Command

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

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the deploymentVELA_ORG, DEPLOYMENT_ORG
reponame of repository for the deploymentVELA_REPO, DEPLOYMENT_REPO
deploymentnumber of the deploymentVELA_DEPLOYMENT, DEPLOYMENT_NUMBER
outputformat the output for the deploymentVELA_OUTPUT, DEPLOYMENT_OUTPUT

Sample

Request

$ pwd
~/github/octocat
$ vela view deployment --deployment 1

Targeted Request

$ vela view deployment --org github --repo octocat --deployment 1

Response generated from successful CLI command

id: 1
repo_id: 1
url: https://api.github.com/repos/github/octocat/deployments/1
user: octocat
commit: 48afb5bdc41ad69bf22588491333f7cf71135163
ref: main
task: deploy:vela
target: production
description: Deployment request from Vela

Examples

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