0.3.0 • Published 11 months ago

create-pipelines v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

pipeline

create-pipelines

DOWNLOADS Node.js CLI Learn VSCode Sponsor Follow @MrAhmadAwais on Twitter

Create AI agent pipelines. create-pipelines is a command-line interface (CLI) tool that helps you quickly set up new AI agent projects using the ⌘ Langbase SDK. It streamlines the process of creating a new project, installing dependencies, and setting up a basic example.

Features

  • šŸš€ Quickly create a new AI agent project with a single command
  • šŸ“¦ Automatically install necessary dependencies using pnpm
  • šŸ”§ Set up a basic example using the ⌘ Langbase SDK
  • šŸ”‘ Create a .env file for API key management
  • šŸ’» Interactive command-line interface for project setup
  • šŸŽØ Customizable project name and structure
  • šŸ“ Generated index.js with a basic AI agent example
  • šŸ”„ Automatically update package.json with start script

šŸ“Ÿ

Install

You don't need to install anything globally. Just run one of these commands to create a new AI agent project:

npm create pipeline
# or
pnpm create pipeline

āš™ļø

Usage

  1. Run the create command:

    pnpm create pipeline
  2. Follow the interactive prompts to set up your project:

    • Enter your project name (default: my-pipeline)
    • Confirm project creation
  3. Once created, navigate to your project directory:

    cd <your-project-name>
  4. Open the .env file and add your Langbase Pipe API key:

    LANGBASE_MY_PIPE_API_KEY=your_api_key_here
  5. Start your AI agent:

    pnpm dev

Project Structure

After creation, your project will have the following structure:

<project-name>/
ā”œā”€ā”€ .env
ā”œā”€ā”€ index.js
ā”œā”€ā”€ package.json
└── node_modules/
  • .env: Contains your Langbase Pipe API key
  • index.js: The main file of your AI agent, containing a basic example
  • package.json: Defines your project and its dependencies

šŸ“

Changelog

āÆ Read the changelog here →

KEY: šŸ“¦ NEW, šŸ‘Œ IMPROVE, šŸ› FIX, šŸ“– DOC, šŸš€ RELEASE, and šŸ¤– TEST

I use Emoji-log, you should try it and simplify your git commits.

šŸ“ƒ

License & Conduct

šŸ™Œ

Connect

This repository is part of the Langbase.com course.

Awais on Twitter