Provide the URL of an existing repository, or use --create-repo with a repository name to create one. After you create the pipeline, add stages, and activate the pipeline.
Flags
Flag Name (Long)
Flag Name (Short)
Description
‑‑api‑version
N/A
Type: Value
Override the api version used for api requests made by this command
‑‑bitbucket‑project‑key
N/A
Type: Value
Bitbucket project key to associate with the repository. Optional when creating a Bitbucket repository using ‘–create-repo’.
‑‑bitbucket‑workspace
N/A
Type: Value
Bitbucket workspace that will own the repository. Required when creating a Bitbucket repository using ‘–create-repo’.
‑‑create‑repo
N/A
Type: Boolean
Create a repository if it doesn’t exist.
‑‑description
‑d
Type: Value
Description of the pipeline.
‑‑flags‑dir
N/A
Type: Value
Import flag values from a directory.
‑‑json
N/A
Type: Boolean
Format output as json.
‑‑name
‑n
Type: Value Required
Name of the pipeline.
‑‑repo
‑r
Type: Value Required
URL of an existing repository or the name of a repository to create.
‑‑repo‑owner
N/A
Type: Value
Owner (organization or user) of the GitHub repository. Required when creating a GitHub repository using ‘–create-repo’.
‑‑repo‑type
N/A
Type: Value Valid Values:github, bitbucket
Type of the source code repository. Required when creating a repository using ‘–create-repo’.
‑‑target‑org
‑o
Type: Value Required
Username or alias of the target org. Not required if the target-org configuration variable is already set.
Examples for devops pipeline create
Create a pipeline and associate it with an existing GitHub repository.