Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@buddy-js/cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buddy-js/cli

A IaC tool to create your [Buddy CI] pipelines programmatically via JS/TS.

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-17.86%
Maintainers
1
Weekly downloads
 
Created
Source

@buddy-js/cli

A IaC tool to create your [Buddy CI] pipelines programmatically via JS/TS.

oclif Version Downloads/week License

Installation

$ 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:

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]

Generates YAML files for Buddy CI pipeline definitions

USAGE
  $ buddyjs generate [INPUT] [--json] [-o <value>] [--clear] [--cwd <value>] [--indent <value>] [--lineWidth
    <value>]

ARGUMENTS
  INPUT  [default: .buddy/buddy.{ts,mts,cts,js,mjs,cjs}] input file

FLAGS
  -o, --output=<value>  [default: .buddy] output directory
      --[no-]clear      [default: true] Remove all YAML files from output directory before generating
      --cwd=<value>     [default: .]

YAML FORMAT FLAGS
  --indent=<value>     [default: 2] Indentation depth for generated YAML files
  --lineWidth=<value>  [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

Keywords

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc