mini-lambda-cli
v1.0.2
Published
The official Command Line Interface for the Mini Lambda serverless platform. Manage your serverless functions, trigger executions, and stream real-time container logs directly from your terminal.
Downloads
179
Readme
⚡ Mini Lambda CLI (mlk)
The official Command Line Interface for the Mini Lambda serverless platform. Manage your serverless functions, trigger executions, and stream real-time container logs directly from your terminal.
✨ Features
- Secure Authentication: Log in with hashed API keys.
- Global Catalog: Instantly list all your deployed serverless containers.
- Remote Invocation: Trigger your isolated Node.js, Python, or C++ environments.
- Live Telemetry: Stream Docker standard output (
stdout/stderr) and execution lifecycle events directly to your local console via Server-Sent Events.
🚀 Installation
Install the CLI globally using NPM:
```bash npm install -g mini-lambda-cli ```
🛠️ Quick Start
1. Authenticate your terminal Grab an API key from your Mini Lambda Dashboard and log in: ```bash mlk login mlk_your_api_key_here ```
2. View your deployed functions Retrieve your catalog of deployed containers and grab a Function ID: ```bash mlk functions ```
3. Invoke a function Trigger a remote execution. You can optionally pass a JSON payload: ```bash mlk invoke <FUNCTION_ID> -d '{"event": "test"}' ```
📖 Commands Reference
| Command | Arguments | Options | Description |
| :--- | :--- | :--- | :--- |
| login | <apiKey> | None | Authenticate your local machine. |
| functions | None | None | List all deployed functions and their stats. |
| invoke | <functionId> | -d, --data <json> | Execute a function and stream live logs. |
| info | None | None | Display CLI version and help information. |
Built with ❤️ by Aditya Kumar.
