Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.17 KB

cli.md

File metadata and controls

51 lines (39 loc) · 1.17 KB
title description
CLI Reference
Learn how to use the CodeBoost CLI to create and run boosts.

CLI Reference

CodeBoost comes with a CLI that can be used to create and run boosts.

Initializing CodeBoost

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

Configuration

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'],
};

Running Boosts

codeboost run -r <repository> <boost>