title | description |
---|---|
CLI Reference |
Learn how to use the CodeBoost CLI to create and run boosts. |
CodeBoost comes with a CLI that can be used to create and run boosts.
You must initialize codeboost
before you can run any boosts. You only need to run this command once to initialize the global configuration file:
codeboost init
To use the codeboost
CLI, create a file named boost.config.js
in your current working directory
This file should export a configuration object with the following properties:
export interface AppSettings {
github_token: string;
repository_storage_path: string;
boosts_path: string;
use_forks: boolean;
use_pull_requests: boolean;
log_target: 'console' | 'file';
}
Example:
/** @type {import('codeboost').BoostConfiguration} */
module.exports.default = {
github_token: '$GITHUB_TOKEN',
repository_storage_path: `${__dirname}/storage/repositories`,
use_forks: true,
use_pull_requests: true,
log_target: ['console', 'file'],
};
codeboost run -r <repository> <boost>