Elbia CLI Tools

Command-line tools for building, testing, and deploying APIs with Elbia. Start developing in seconds.

Getting Started

Installation

// Using npm
npm install -g @elbia/cli
// Using Homebrew (macOS)
brew install elbia/tap/elbia-cli

After installing, verify the installation by checking the version:

elbia --version

Configure Your Project

Create a new API project with the CLI's interactive setup:

elbia new my-api

First Command

Start the development server and API explorer:

cd my-api
elbia dev

The development server will start at http://localhost:3000

Example Workflow

1. Create an API

elbia create-api users-api
-t rest
-s express
-d "User Management System"

This creates a REST API with Express framework and description metadata.

2. Add Functionality

cd users-api
nano routes/users.js

Add your endpoint definitions

module.exports = ({ db }) => ({
'/users': {
'GET': async () => db.find(),
'POST': async (req) => db.insert(req.body)
}
})

3. Test Your API

GET /api/users
Response:
[
{"id": "1", "name": "Alice"},
{"id": "2", "name": "Bob"}
]

4. Deploy Your API

elbia deploy --env production

Your API will be deployed to Elbia's cloud with HTTPS and auto-scaling.

Want more power?

Our advanced tools include CLI plugins for monitoring, analytics, and integration with third-party services.