A IaC tool to create your [Buddy CI] pipelines programmatically via JS/TS.
npm install @buddy-js/cli@buddy-js/cli
=================
A IaC tool to create your [Buddy CI] pipelines programmatically via JS/TS.




* Installation
* Usage
* Commands
sh-session
$ npm install @buddy-js/cli @buddy-js/core
$ yarn add @buddy-js/cli @buddy-js/core
$ pnpm add @buddy-js/cli @buddy-js/core
`Usage
Create the index file, e.g. .buddy/buddy.mjs with the following content:
`javascript
import { pipeline, action } from '@buddy-js/core';pipeline('Production', {
on: 'CLICK',
refs: ['refs/heads/main'],
actions: [
action('Execute: pnpm test', 'BUILD', {
docker_image_name: 'node',
docker_image_tag: '22',
execute_commands: [
'pnpm install',
'pnpm test'
]
})
]
})
`Commands
* [buddyjs generate [INPUT]](#buddyjs-generate-input)
* [buddyjs help [COMMAND]](#buddyjs-help-command)buddyjs generate [INPUT]Generates YAML files for Buddy CI pipeline definitions
`
USAGE
$ buddyjs generate [INPUT] [--json] [-o ] [--clear] [--cwd ] [--indent ] [--lineWidth
]ARGUMENTS
INPUT [default: .buddy/buddy.{ts,mts,cts,js,mjs,cjs}] input file
FLAGS
-o, --output= [default: .buddy] output directory
--[no-]clear [default: true] Remove all YAML files from output directory before generating
--cwd= [default: .]
YAML FORMAT FLAGS
--indent= [default: 2] Indentation depth for generated YAML files
--lineWidth= [default: 80] Max line width for generated YAML files
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Generates YAML files for Buddy CI pipeline definitions
ALIASES
$ buddyjs gen
$ buddyjs g
EXAMPLES
$ buddyjs generate
`_See code: src/commands/generate.ts_
buddyjs help [COMMAND]Display help for buddyjs.
`
USAGE
$ buddyjs help [COMMAND...] [-n]ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for buddyjs.
``_See code: @oclif/plugin-help_