CircleCI Orbs are shareable packages of configuration elements, including jobs, commands, and executors. CircleCI provides certified orbs, along with 3rd-party orbs authored by CircleCI partners. It is best practice to first evaluate whether any of these existing orbs will help you in your configuration workflow. Refer to the CircleCI Orbs Registry for the complete list of certified orbs.
Importing an Existing Orb
To import an existing orb, add a single line to to your version 2.1 .circleci/config.yml file for each orb, for example:
version: 2.1 orbs: slack: firstname.lastname@example.org heroku: email@example.com
Note: If your project was added to CircleCI prior to 2.1, you must enable Build Processing to use the
Authoring Your Own Orb
If you find that there are no existing orbs that meet your needs, you may author your own orb to meet your specific environment or configuration requirements by using the CircleCI CLI as shown in the
circleci orb help output below. Although this is more time-consuming than using the import feature, authoring your own orb enables you to create a world-readable orb for sharing your configuration.
$ circleci orb help Operate on orbs Usage: circleci orb [command] Available Commands: create Create an orb in the specified namespace list List orbs process Validate an orb and print its form after all pre-registration processing publish Publish an orb to the registry source Show the source of an orb validate Validate an orb.yml
Importing Partner Orbs
Import the following Partner Orbs by using the
orbs key in your
.circleci.yml/config.yml file and replacing
<orb reference string> with one from the table.
version: 2.1 orbs: <orb reference string>
|Partner Orb Registry Link||Orb Reference String|
Note: As a prerequisite, you must enable use of 3rd-party orbs on the Settings > Security page for your org.
- Refer to Using Orbs, for more about how to use existing orbs.
- Refer to Creating Orbs, where you will find step-by-step instructions on how to create your own orb.
- Refer to the Orbs FAQ, where you will find answers to common questions.
- Refer to Reusing Config for more detailed examples of reusable orbs, commands, parameters, and executors.