npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nestbox-ai/cli

v1.0.54

Published

The cli tools that helps developers to build agents

Downloads

931

Readme

Nestbox CLI for managing and deploying agents

The Nestbox CLI tool is designed to facilitate development, management, and deployment of AI agents built on the Nestbox platform. It provides developers streamlined commands for authentication, deployment lifecycle management, and AI agent management.

Read more in the Nestbox AI developers site

Installation

npm install -g @nestbox-ai/cli

Quick Start

  1. Login to your Nestbox platform:

    nestbox login <nestbox-domain>
  2. List available projects:

    nestbox project list
  3. Set default project:

    nestbox project use <project-name>
  4. Deploy an agent:

    nestbox agent deploy --agent <agent-name> --instance <machine-name>

Global Options

nestbox [options] [command]

Options:
  -V, --version            output the version number
  -h, --help               display help for command

Commands Overview

  • login - Login using Google SSO
  • logout - Logout from Nestbox platform
  • project - Manage Nestbox projects
  • compute - Manage Nestbox compute instances
  • agent - Manage Nestbox agents
  • document - Manage Nestbox documents and collections
  • image - Manage Nestbox images
  • generate - Generate new projects and components

Authentication Commands

login

Login to the Nestbox platform using Google SSO.

nestbox login <nestbox-domain>

Parameters:

  • <nestbox-domain> - The Nestbox domain to authenticate with (e.g., app.nestbox.ai or localhost:3000)

Example:

nestbox login app.nestbox.ai

After running this command, your browser will open for Google authentication. Once authenticated, paste the provided token and API URL when prompted.

logout

Logout from the Nestbox platform.

nestbox logout [nestbox-domain]

Parameters:

  • [nestbox-domain] - Optional domain to logout from. If not provided, will logout from all stored credentials.

Example:

nestbox logout app.nestbox.ai

Project Management

project

Manage Nestbox projects with the following subcommands:

project list

List all available projects.

nestbox project list

Shows all projects from the API with their names, aliases (if any), and indicates which is the current default project.

project use

Set a default project for all subsequent commands.

nestbox project use <project-name>

Parameters:

  • <project-name> - Name of the project to set as default

Example:

nestbox project use my-ai-project

project add

Add a project with an optional alias.

nestbox project add <project-name> [alias]

Parameters:

  • <project-name> - Name of the project to add
  • [alias] - Optional alias for the project

Example:

nestbox project add my-ai-project myproj

Compute Management

compute

Manage Nestbox compute instances with the following subcommands:

compute list

List all compute instances.

nestbox compute list [options]

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

compute create

Create a new compute instance.

nestbox compute create <instance-name> [options]

Parameters:

  • <instance-name> - Name for the new compute instance

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

compute delete

Delete a compute instance.

nestbox compute delete <instance-name> [options]

Parameters:

  • <instance-name> - Name of the compute instance to delete

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
  • --force - Skip confirmation prompt

Agent Management

agent

Manage Nestbox agents with the following subcommands:

agent list

List all agents in the project.

nestbox agent list [options]

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

agent create

Create a new agent.

nestbox agent create [options]

Options:

  • --agent <agent> - Agent name to create
  • --all - Create all agents defined in nestbox-agents.yaml
  • --project <project> - Project ID (defaults to current project)
  • --type <type> - Agent type (e.g. CHAT, AGENT, REGULAR)
  • --description <description> - Description of the agent
  • --instance <instance> - Machine name
  • --inputSchema <inputSchema> - Agent input schema

Examples:

# Create a single agent
nestbox agent create --agent my-agent --instance my-compute --type REGULAR

# Create all agents from YAML manifest
nestbox agent create --all --instance my-compute

agent deploy

Deploy an AI agent to the Nestbox platform.

nestbox agent deploy [options]

Options:

  • --agent <agent> - Agent name to deploy
  • --all - Deploy all agents defined in nestbox-agents.yaml
  • --prefix <prefix> - A prefix added to beginning of the agent name
  • --description <description> - Goal/description of the agent
  • --inputSchema <inputSchema> - Agent input schema
  • --project <project> - Project ID (defaults to current project)
  • --type <type> - Agent type (e.g. CHAT, AGENT, REGULAR)
  • --entryFunction <entryFunction> - Entry function name
  • --instance <instance> - Machine name
  • --log - Show detailed logs during deployment
  • --silent - Disable automatic agent creation

Examples:

# Deploy a single agent
nestbox agent deploy --agent my-agent --instance my-compute

# Deploy all agents with logging
nestbox agent deploy --all --instance my-compute --log

# Deploy with custom prefix
nestbox agent deploy --agent my-agent --instance my-compute --prefix "v2-"

agent remove

Remove an agent from the platform.

nestbox agent remove <agent-name> [options]

Parameters:

  • <agent-name> - Name of the agent to remove

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

Document Management

document

Manage Nestbox documents and collections with the following subcommands:

Document Collections

document collection list

List all document collections.

nestbox document collection list [options]

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
document collection create

Create a new document collection.

nestbox document collection create <collection-name> [options]

Parameters:

  • <collection-name> - Name of the collection to create

Options:

  • --metadata <json> - Metadata for the document collection in JSON format
  • --project <projectId> - Project ID or name (defaults to the current project)

Example:

nestbox document collection create my-docs --metadata '{"category": "research"}'
document collection get

Get details of a specific document collection.

nestbox document collection get <collection-id> [options]

Parameters:

  • <collection-id> - ID of the collection to retrieve

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
document collection update

Update a document collection.

nestbox document collection update <collection-id> [options]

Parameters:

  • <collection-id> - ID of the collection to update

Options:

  • --name <name> - New name of the document collection
  • --metadata <json> - New metadata for the document collection in JSON format
  • --project <projectId> - Project ID or name (defaults to the current project)
document collection delete

Delete a document collection.

nestbox document collection delete <collection-id> [options]

Parameters:

  • <collection-id> - ID of the collection to delete

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

Documents

document doc add

Add a document to a collection.

nestbox document doc add <collection-id> <document-content> [options]

Parameters:

  • <collection-id> - ID of the collection to add the document to
  • <document-content> - Content of the document

Options:

  • --metadata <json> - Document metadata in JSON format (optional)
  • --project <projectId> - Project ID or name (defaults to the current project)

Example:

nestbox document doc add col123 "This is my document content" --metadata '{"title": "My Doc"}'
document doc get

Get a specific document.

nestbox document doc get <collection-id> <document-id> [options]

Parameters:

  • <collection-id> - ID of the collection containing the document
  • <document-id> - ID of the document to retrieve

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
document doc update

Update a document.

nestbox document doc update <collection-id> <document-id> <new-content> [options]

Parameters:

  • <collection-id> - ID of the collection containing the document
  • <document-id> - ID of the document to update
  • <new-content> - New content for the document

Options:

  • --metadata <json> - Updated document metadata in JSON format (optional)
  • --project <projectId> - Project ID or name (defaults to the current project)
document doc delete

Delete a document.

nestbox document doc delete <collection-id> <document-id> [options]

Parameters:

  • <collection-id> - ID of the collection containing the document
  • <document-id> - ID of the document to delete

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
document doc upload-file

Upload a file as a document.

nestbox document doc upload-file <collection-id> <file-path> [options]

Parameters:

  • <collection-id> - ID of the collection to upload the file to
  • <file-path> - Path to the file to upload

Options:

  • --type <fileType> - Type of the file (e.g., pdf, txt, doc)
  • --options <json> - Additional options for file processing in JSON format
  • --project <projectId> - Project ID or name (defaults to the current project)

Example:

nestbox document doc upload-file col123 ./document.pdf --type pdf
document doc search

Search for documents within collections.

nestbox document doc search <collection-id> <search-query> [options]

Parameters:

  • <collection-id> - ID of the collection to search in
  • <search-query> - Search query string

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)
  • --filter <json> - Filter criteria as JSON string

Image Management

image

Manage Nestbox images with the following subcommands:

image list

List all available images.

nestbox image list [options]

Options:

  • --project <projectId> - Project ID or name (defaults to the current project)

Project Generation

generate

Generate new projects and components with the following subcommands:

generate project

Generate a new Nestbox project from templates.

nestbox generate project <folder> [options]

Parameters:

  • <folder> - Name of the folder to create the project in

Options:

  • --lang <language> - Project language (ts|js)
  • --template <type> - Template type (agent|chatbot)
  • --instanceName <name> - Name of the compute instance
  • --project <projectId> - Project ID

Examples:

# Generate a TypeScript agent project
nestbox generate project my-agent --lang ts --template agent

# Generate a JavaScript chatbot project
nestbox generate project my-chatbot --lang js --template chatbot --project my-project-id

Configuration

The CLI stores authentication and configuration data in ~/.config/.nestbox/. This includes:

  • Authentication tokens for different domains
  • Default project settings
  • Project aliases

Error Handling

The CLI includes automatic token refresh functionality. If your authentication token expires, the CLI will attempt to refresh it automatically. If this fails, you'll need to login again using nestbox login.

Support

For more information and detailed guides, visit the Nestbox AI developers site.

For issues and bug reports, please visit the GitHub repository.