@bsdk/cli
v0.0.3
Published
Set up BSDK in your project from the command line.
Readme
BSDK CLI
Set up BSDK in your project from the command line.
Usage
Run BSDK using your preferred package manager:
# npm
npx @bsdk/cli init
# pnpm
pnpm dlx @bsdk/cli init
# yarn
yarn dlx @bsdk/cli init
# bun
bunx @bsdk/cli initThe CLI automatically detects your package manager and uses it when installing dependencies.
AI Providers
During setup, choose up to 3 AI providers:
- Groq
- Gemini
- OpenAI
- Anthropic
BSDK installs the required AI SDK packages and generates the provider configuration for you.
For example, selecting Groq generates:
import { createGroq } from "@ai-sdk/groq";
export const groq = createGroq({
apiKey: process.env.GROQ_API_KEY!,
});Add the corresponding API key to your environment:
GROQ_API_KEY=Knowledge
BSDK can optionally configure knowledge search using:
- Pinecone — Vector database
- Cohere — Embeddings
If enabled, the CLI installs the required dependencies and generates the knowledge configuration:
export const knowledgeConfig = {
pinecone: {
apiKey: process.env.PINECONE_API_KEY!,
indexHost: process.env.PINECONE_INDEX_HOST!,
},
cohere: {
apiKey: process.env.COHERE_API_KEY!,
},
};Add the required environment variables:
PINECONE_API_KEY=
PINECONE_INDEX_HOST=
COHERE_API_KEY=Package Managers
BSDK supports:
| Package Manager | Run |
| --- | --- |
| npm | npx @bsdk/cli init |
| pnpm | pnpm dlx @bsdk/cli init |
| Yarn | yarn dlx @bsdk/cli init |
| Bun | bunx @bsdk/cli init |
That's it. Run the CLI, choose your providers and knowledge setup, and BSDK generates the required configuration for your project.
