Apito CLI - Complete API Development Tool

The powerful command-line interface for building, deploying, and managing your entire API lifecycle. From localhost development to cloud deployment, plugin development to database management.

Command Line Tool • Localhost Development • Cloud Deployment • Plugin System

Start Building in Localhost with 3 Simple Steps

Use Apito CLI to build and deploy your APIs from zero to production-ready GraphQL & REST APIs in under 5 minutes

Install Apito CLI
Terminal
$ curl -fsSL https://get.apito.io/install.sh | bash
Instant API Builder ready in seconds

Watch Apito CLI in Action

See how easy it is to build APIs with our interactive terminal demo. Click play to watch the complete workflow from installation to deployment.

Apito CLI Interactive Demo
$ curl -fsSL https://get.apito.io/install.sh | bash
✓ Package installed successfully
$ apito init
[INFO] Step 0: Select run mode (Docker recommended)...
[WARNING] Port 5050 is already in use
[INFO] Please ensure port 5050 is available for Apito to run properly
$ apito start
🚀 Server ready at http://localhost:5050
GraphQL API: http://localhost:5050/secured/graphql
REST API: http://localhost:5050/secured/rest
Apito CMS: http://localhost:4000

Complete API Development Workflow

Everything you need to build, deploy, and manage APIs from your terminal

Localhost Development

  • • Start development server instantly
  • • Hot reload and live updates
  • • Local database management
  • • Real-time API testing
  • • Console and engine services

Cloud Deployment

  • • One-click deployment to cloud
  • • Production-ready configurations
  • • Environment management
  • • Scaling and monitoring
  • • CI/CD integration

Plugin Development

  • • Create custom plugins
  • • Go, JavaScript, Python support
  • • Build and deploy plugins
  • • Plugin management
  • • Hot reload development

Database Management

  • • Connect any database
  • • SQL and NoSQL support
  • • Schema import/export
  • • Migration management
  • • Backup and restore

Project Management

  • • Create and manage projects
  • • Project templates
  • • Environment configurations
  • • Team collaboration
  • • Version control integration

Monitoring & Logs

  • • Real-time log streaming
  • • Performance monitoring
  • • Error tracking
  • • Health checks
  • • Debugging tools

Powerful CLI Commands

Comprehensive command set for every aspect of API development

Development Commands

# Initialize Apito CLI
$ apito init
# Start development server
$ apito start
# Stop services
$ apito stop
# Restart services
$ apito restart
# Check status
$ apito status

Project Commands

# Create new project
$ apito create project -n my-api
# List projects
$ apito list
# Build project
$ apito build
# Deploy project
$ apito deploy
# View logs
$ apito logs

Database Commands

# Connect database
$ apito db connect postgresql://...
# Setup database
$ apito db setup
# Import schema
$ apito db import
# Export schema
$ apito db export
# Database logs
$ apito logs --db system

Plugin Commands

# Create plugin
$ apito plugin create
# Build plugin
$ apito plugin build
# Deploy plugin
$ apito plugin deploy
# List plugins
$ apito plugin list
# Plugin status
$ apito plugin status

Docker Integration

Seamless Docker integration for containerized development and deployment

Docker Features

  • Automatic Container Management

    CLI automatically manages Docker containers for databases and services

  • Volume Persistence

    Data persistence across container restarts with named volumes

  • Multi-Database Support

    Run multiple database types simultaneously in containers

  • Development Environment

    Isolated development environment with hot reload

Docker Commands

# Check Docker status
$ docker --version
# List Apito containers
$ docker ps | grep apito
# View container logs
$ docker logs apito-system-postgres
# List volumes
$ docker volume ls | grep apito
# Restart database
$ apito restart --db system

Plugin Development Workflow

Build, test, and deploy custom plugins with multiple language support

1

Create Plugin

Generate plugin scaffold with Go, JavaScript, or Python templates

$ apito plugin create
2

Develop

Write your plugin logic with hot reload and live testing

$ apito plugin dev
3

Build

Compile and package your plugin for deployment

$ apito plugin build
4

Deploy

Deploy to local or cloud environment with one command

$ apito plugin deploy

Go Plugins

High-performance plugins with Go's concurrency and speed

func HandleRequest(req *Request) *Response {
// Plugin logic
return &Response{Status: 200}
}

JavaScript Plugins

Flexible plugins with Node.js ecosystem and npm packages

function handleRequest(req) {
// Plugin logic
return {status: 200};
}

Python Plugins

Data science and ML plugins with Python's rich ecosystem

def handle_request(req):
# Plugin logic
return {"status": 200}

Configuration Management

Flexible configuration system for different environments and use cases

CLI Configuration

Account Management

$ apito account create staging
$ apito account select production
$ apito config set account staging url https://staging.apito.io

Environment Variables

ENVIRONMENT=production
APITO_SYSTEM_DB_ENGINE=postgres
SYSTEM_DB_HOST=localhost
SYSTEM_DB_PORT=5432

Project Configuration

Database Configuration

APITO_PROJECT_DB_ENGINE=mysql
PROJECT_DB_HOST=localhost
PROJECT_DB_NAME=my_project
PROJECT_DATABASE_URL=mysql://user:pass@host:3306/db

Service Configuration

SERVE_PORT=5050
CORS_ORIGIN=http://localhost:4000
BRANKA_KEY=generated-secret-key
TOKEN_TTL=3600

Start Building with Apito CLI Today

Install Apito CLI and start building, deploying, and managing your APIs from the command line.