JSPM

  • Created
  • Published
  • Downloads 874
  • Score
    100M100P100Q111944F
  • License SEE LICENSE IN LICENSE

Jelou Functions CLI — deploy serverless TypeScript functions to the edge

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jelou/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @jelou/cli

    Command-line tool for Jelou Functions — serverless TypeScript functions on the edge.

    One define() call gives you:

    • An HTTP endpoint with Zod validation and CORS
    • An MCP tool discoverable by AI agents
    • Cron schedules for recurring tasks

    Use it to build webhook handlers, chatbot integrations, scheduled cleanups, API proxies, and AI agent tools.

    Install

    # npm (recommended)
    npm install -g @jelou/cli
    
    # npx (no install)
    npx @jelou/cli deploy
    
    # Deno
    deno install -A -n jelou jsr:@jelou/cli

    Verify the installation:

    jelou --version

    Quick Start

    # Authenticate
    jelou login
    
    # Create a new function
    mkdir my-function && cd my-function
    jelou init
    
    # Start local dev server with hot reload
    jelou dev
    # → http://localhost:3000
    
    # Deploy to production
    jelou deploy
    # → https://my-function.fn.jelou.ai

    Commands

    Group Command Description
    Auth jelou login Authenticate with your access token
    jelou logout Remove stored credentials
    jelou whoami Show current identity and scopes
    Workflow jelou init Scaffold a new function project
    jelou dev Local dev server with hot reload
    jelou deploy Deploy to production
    jelou rollback Roll back to a previous deployment
    jelou logs Stream or fetch function logs
    Manage jelou functions List, create, delete functions
    jelou secrets Manage environment secrets
    jelou tokens Manage access tokens
    jelou cron View cron schedules
    jelou analytics View request/latency metrics
    Setup jelou skill Install Jelou Functions agent skill

    Run jelou <command> --help for flags and usage details.

    CI / Non-Interactive Mode

    Every command works headlessly in CI pipelines.

    export JELOU_TOKEN=jfn_pat_your_token_here
    
    jelou deploy --no-confirm --json | jq '.data.url'
    • --no-input disables all prompts (auto-detected when CI=true or stdin is not a TTY)
    • --json outputs { "ok": true, "data": ... } to stdout

    See the full CI reference for per-command flags and GitHub Actions examples.

    Configuration

    Source Purpose
    jelou.json Project config (function slug, entrypoint)
    ~/.jelou/ User credentials and API URL override
    JELOU_TOKEN Access token (overrides saved credentials)
    JELOU_API_URL API base URL override

    See the full configuration reference for details.

    Documentation

    • CLI Reference — full command docs, flags, CI usage, troubleshooting
    • SDK Guidedefine() API, context, validation, testing

    License

    Copyright 2026 Jelou Inc. All rights reserved.

    See LICENSE for details.