Skip to main content

Get

Command

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

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

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the logVELA_ORG, LOG_ORG
reponame of repository for the logVELA_REPO, LOG_REPO
buildnumber of the build for the logVELA_BUILD, LOG_BUILD
outputformat the output for the logsVELA_OUTPUT, LOG_OUTPUT
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.

Permissions

COMING SOON!

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 log --build 5

Targeted Request

$ vela get log --org github --repo octocat --build 5

Response

$ git init
Initialized empty Git repository in /vela/src/github.com/github/octocat/.git/
$ git remote add origin https://github.com/github/octocat.git
$ git remote --verbose
origin https://github.com/github/octocat.git (fetch)
origin https://github.com/github/octocat.git (push)
$ git fetch --no-tags origin refs/heads/main
From https://github.com/github/octocat
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
$ git reset --hard afafce5e33a8efd4340613b31a953107d6dec3a3
HEAD is now at afafce5 Dummy commit

$ echo "Hello World!"
Hello World!