Skip to main content

Get

Command

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

For more information, you can run vela get deployment --help.

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
tip

This command also supports setting the following parameters via a configuration file:

  • org
  • repo
  • output

For more information, please review the CLI config documentation.

Sample

warning

This section assumes you have already installed and setup the CLI.

To install the CLI, please review the installation documentation.

To setup the CLI, please review the authentication documentation.

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