Create a new pipeline for a CircleCI project.
Create a new pipeline for a CircleCI project.
All flags are optional - if not provided, you will be prompted interactively for the required values: –name Name of the pipeline –repo-id GitHub repository ID where the codebase you wish to build a pipeline for –file-path Path to the CircleCI config file –config-repo-id GitHub repository ID where the CircleCI config file is located (if different from code repository) –description Description of the pipeline (will not prompt if omitted)
Examples: # Minimal usage (will prompt for required values): circleci pipeline create 1662d941-6e28-43ab-bea2-aa678c098d4c
# Full usage with all flags: circleci pipeline create 1662d941-6e28-43ab-bea2-aa678c098d4c –name my-pipeline –description “My pipeline description” –repo-id 123456 –file-path .circleci/config.yml –config-repo-id 987654
Note: You will need our GitHub App installed in your repository.
Note: To get the repository id you can use https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository
circleci pipeline create <project-id> [--name <pipeline-name>] [--description <description>] [--repo-id <github-repo-id>] [--file-path <circleci-config-file-path>] [--config-repo-id <github-repo-id>] [flags]
--config-repo-id string Repository ID of the CircleCI config file
--description string Description of the pipeline to create
--file-path string Path to the circleci config file to create
-h, --help help for create
--name string Name of the pipeline to create
--repo-id string Repository ID of the codebase you wish to build a pipeline for
--host string URL to your CircleCI host, also CIRCLECI_CLI_HOST (default "https://circleci.com")
--skip-update-check Skip the check for updates check run before every command. (default true)
--token string your token for using CircleCI, also CIRCLECI_CLI_TOKEN