You can queue, show, and list builds using tfx.
Queues a build for a given project with a given definition.
####Options
--project <string> - Required. The name of the project to queue a build for.
AND
--definition-id <number> - The id of the build definition to build against.
AND
--status <string> - desired queue status (Enabled / Disabled / Paused).####Example
~$ tfx build definitions queuestatus --project MyProject --definition-id 123 --status "paused"
build definition TestDefinition (current status is: Disabled)
setting definition TestDefinition to Paused
Build Definition TestDefinition Paused successfully!Shows information for a given build.
####Options
--project <string> - Required. The name of the project to queue a build for.
--id <number> - Required. The id of the build to show.####Example
$ tfx build definition --project MyProject --id 1
Copyright Microsoft Corporation
name : TestDefinition
id : 1
revision : 123
Created Date : dd-mm-yyyy
Queue Status : Enabled
type : Build
url : https://<MyAccount>:/MyProject>/<project-uuid>/_apis/build/Definitions/1Queries for a list of builds.
####Options
--project <string> - Required. The name of the project to queue a build for.####Example
~$ tfx build definitions list
Copyright Microsoft Corporation
...
id : 1
name : TestDefinition
type : Build
id : 2
name : XamlTestDefinition
type : Xaml
export a build definition to Json file.
####Options
--project <string> Project name.
--definition-id <number> Identifies a build definition.
--definition-path <string> Local path to a Build Definition Json (default file name is <definitionName>-<definitionId>-<revision>.json).
--overwrite Overwrite existing Build Definition Json.
--revision <number> Get specific definition revision.
####Example
~$ tfx build definitions export --project MyProject --definition-id 1
Copyright Microsoft Corporation
Build Definition 1 exported successfully
update a build definition from Json file.
####Options
--project <string> - Required, Project name.
--definition-id <number> - Required, Identifies a build definition.
--definition-path <string> - Required, Local path to a Build Definition.
####Example
~$ tfx build definitions update --project MyProject --definition-id 1 --definition-path ./TestDefinition-1-123.json
Copyright Microsoft Corporation
id : 1
name : TestDefinition
revision : 124
create a new Build definition from Json file.
####Options
--project <string> - Required, Project name.
--definition-path <string> - Required, Local path to a Build Definition.
--name <string> - Required, Name of the Build Definition.
####Example
~$ tfx build definitions create --project MyProject --definition-path ./TestDefinition-1-123.json --name NewBuildDefinition
Copyright Microsoft Corporation
id : 2
name : NewBuildDefinition
type : Build
delete a build definition.
####Options
--project <string> - Required, Project name.
--definition-id <number> - Required, Identifies a build definition.####Example
~$ tfx build definitions delete --project MyProject --definition-id 2
Copyright Microsoft Corporation
Build Definition 2 deleted successfully!