Command line program for generating Bucketeer feature flag code references.
This repository provides solutions for configuring Bucketeer code references with various systems out-of-the-box, as well as the ability to automate code reference discovery on your own infrastructure using the provided command line interface.
The command line program may be run manually, and executed in an environment of your choosing. The program requires your git
repo to be cloned locally, and the currently checked out branch will be scanned for code references.
We recommend incorporating bucketeer-code-refs
into your CI/CD build process. bucketeer-code-refs
should run whenever a commit is pushed to your repository.
If you are scanning a git repository, bucketeer-code-refs
requires git (tested with version 2.21.0) to be installed on the system path.
# TODO: Add installation instructions for macOS
# TODO: Add installation instructions for Linux
# TODO: Add installation instructions for Windows
# TODO: Add Docker instructions
bucketeer-code-refs
provides a number of configuration options to customize how code references are generated and surfaced in your Bucketeer dashboard.
Required configuration:
API_KEY
: Your Bucketeer API keyAPI_ENDPOINT
: Your Bucketeer API endpointENVIRONMENT_ID
: The Bucketeer environment IDREPO_NAME
: The name of your repositoryREPO_OWNER
: The owner of your repositoryREPO_TYPE
: The type of repository (GITHUB, GITLAB, BITBUCKET, or CUSTOM)
Optional configuration:
BRANCH
: The git branch to scan (defaults to current branch)REVISION
: The git commit SHA to scan (defaults to current commit)DEBUG
: Enable debug loggingDRY_RUN
: Run without sending data to BucketeerIGNORE_SERVICE_ERRORS
: Continue execution even if there are API errorsOUT_DIR
: Directory to write CSV output filesUSER_AGENT
: Custom user agent string for API requests
For detailed configuration options, please refer to the configuration documentation.