create-pipeline v0.2.3
create-pipeline
Create AI pipeline of as an AI agent.
create-pipeline
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
Run the create command:
pnpm create pipeline
Follow the interactive prompts to set up your project:
- Enter your project name (default: my-pipeline)
- Confirm project creation
Once created, navigate to your project directory:
cd <your-project-name>
Open the
.env
file and add your Langbase Pipe API key:LANGBASE_MY_PIPE_API_KEY=your_api_key_here
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 keyindex.js
: The main file of your AI agent, containing a basic examplepackage.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
- MIT Ā© Ahmad Awais
- Code of Conduct
Connect
This repository is part of the Langbase.com course.