← 返回 Skills 市场
🔌

aipexbase-cli

作者 KuaFuAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
176
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aipexbase-cli
功能描述
Use aipexbase-cli to operate AiPexBase BaaS service, supporting database operations, application management, user authentication, etc.
使用说明 (SKILL.md)

AiPexBase CLI Skill

About AiPexBase

AiPexBase is a BaaS (Backend as a Service) platform that provides database, authentication, file storage, and other backend capabilities.

GitHub: https://github.com/kuafuai/aipexbase

Prerequisites:

  • Deployed AiPexBase service (to get baseUrl)
  • API Key (obtained from service admin dashboard)
  • Installed aipexbase-cli: npm install -g aipexbase-cli

Core command format:

baas -c \x3Cconfig-file> \x3Ccommand> [options]

Important: All commands must use the -c parameter to specify the configuration file!

Configuration File

Must create configuration file first (even an empty file is fine):

echo '{}' > config.json
  • Configuration can be filled or updated through the config command.

Command Reference

1. Configuration Management

# Set configuration
baas -c config.json config --base-url "http://localhost:8080" --api-key "your-api-key"

# View configuration
baas -c config.json config --show

2. Database Operations

Query:

# Query all
baas -c config.json db list \x3Ctable>

# Equal query
baas -c config.json db list \x3Ctable> --where '{"status": "active"}'

# Comparison query
baas -c config.json db list \x3Ctable> --where '{"price": {"gt": 100}}'

# Multiple conditions
baas -c config.json db list \x3Ctable> --where '{"price": {"gte": 100, "lte": 1000}, "status": "active"}'

# Pagination
baas -c config.json db page \x3Ctable> --page-num 1 --page-size 20

# Sorting
baas -c config.json db list \x3Ctable> --order "created_at:desc"

# Single record
baas -c config.json db get \x3Ctable> --where '{"id": "rec_xxx"}'

Modify:

# Insert
baas -c config.json db insert \x3Ctable> --data '{"field1": "value1", "field2": "value2"}'

# Update
baas -c config.json db update \x3Ctable> --where '{"id": "rec_xxx"}' --data '{"field1": "new-value"}'

# Delete
baas -c config.json db delete \x3Ctable> --where '{"id": "rec_xxx"}'

where operators:

Operator Description Example
Direct value Equal {"status": "active"}
gt Greater than {"price": {"gt": 100}}
gte Greater than or equal {"age": {"gte": 18}}
lt Less than {"stock": {"lt": 10}}
lte Less than or equal {"score": {"lte": 60}}
neq Not equal {"status": {"neq": "deleted"}}
like Fuzzy match {"name": {"like": "Zhang"}}
in In array {"status": {"in": ["active", "pending"]}}
between Range {"price": {"between": [100, 1000]}}

3. Application and Table Management

# Create application
baas -c config.json manage create-app --name "App Name" --user-id "User ID"

# Create table
baas -c config.json manage create-table \
  --app-id "App ID" \
  --table-name "Table Name" \
  --columns '[
    {"columnName": "name", "columnType": "string", "columnComment": "Name"},
    {"columnName": "age", "columnType": "number", "columnComment": "Age"}
  ]'

Field types:

Type Description Type Description
string Short text password Password (encrypted)
text Long text phone Phone (validated)
number Integer email Email (validated)
decimal Decimal images Images
boolean Boolean files Files
date Date videos Videos
datetime Datetime quote Reference

4. User Authentication

# Login
baas -c config.json login --phone "13800138000" --code "123456"

# Logout
baas -c config.json logout

# Generate login link
baas -c config.json login-link --channel "web" --user-id "user123"

5. File Upload

baas -c config.json upload --file "/path/to/file.jpg" --table "Table Name"

Parameter Specifications

JSON Format Requirements

Rules:

  1. Use single quotes '...' for outer layer
  2. Use double quotes "..." for inner layer
  3. JSON must be valid

Correct examples:

✓ --data '{"name": "Zhang San", "age": 25}'
✓ --where '{"status": "active"}'

Incorrect examples:

✗ --data "{"name": "Zhang San"}"      # Outer layer cannot use double quotes
✗ --data "{'name': 'Zhang San'}"      # Inner layer cannot use single quotes

columns Format

[
  {
    "columnName": "Field Name",
    "columnType": "Field Type",
    "columnComment": "Field Description"
  }
]

Quick Example

# 1. Create configuration file
echo '{}' > config.json

# 2. Set configuration
baas -c config.json config --base-url "http://localhost:8080" --api-key "your-key"

# 3. Create application
baas -c config.json manage create-app --name "My App" --user-id "admin"

# 4. Create table
baas -c config.json manage create-table \
  --app-id "baas_xxx" \
  --table-name "users" \
  --columns '[{"columnName": "username", "columnType": "string", "columnComment": "Username"}]'

# 5. Insert data
baas -c config.json db insert users --data '{"username": "zhangsan"}'

# 6. Query data
baas -c config.json db list users --where '{"username": "zhangsan"}'
安全使用建议
This skill appears coherent for using the AiPexBase CLI, but take normal precautions before installing third‑party CLIs: verify the npm package and GitHub repository (https://github.com/kuafuai/aipexbase), prefer installing locally or in an isolated environment rather than global install if you are unsure, ensure the baseUrl uses HTTPS for production, store API keys securely (avoid committing config.json to source control), and review the CLI source if you need stronger assurance before running it on sensitive systems.
功能分析
Type: OpenClaw Skill Name: aipexbase-cli Version: 1.0.0 The skill bundle provides a legitimate interface for the AiPexBase BaaS CLI tool (aipexbase-cli), documented in SKILL.md. It facilitates database operations, user authentication, and application management through standard CLI commands. While it requires Bash access to execute these commands, the instructions are clearly aligned with the stated purpose and include helpful guidance on proper JSON formatting and configuration management to ensure correct usage. No evidence of malicious intent, data exfiltration, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (AiPexBase CLI for BaaS operations) match the SKILL.md content: commands, config file, database, auth, file upload and app/table management are all described and expected for this purpose.
Instruction Scope
The instructions are narrowly scoped to creating a config file and invoking the 'baas' CLI with -c. They do not ask the agent to read unrelated system files, access unrelated credentials, or transmit data to unexpected endpoints. The only external interaction described is with the AiPexBase service (baseUrl) and local config.json.
Install Mechanism
This is an instruction-only skill (no install spec), but it tells users to run `npm install -g aipexbase-cli`. Installing a CLI from the public npm registry is a reasonable step for this skill, but it does carry the usual risks of executing third-party packages; the skill itself does not provide or fetch the binary.
Credentials
The skill requests no environment variables or credentials in the metadata. It expects an API key to be placed into a local config file (config.json), which is proportionate to operating a BaaS CLI. There are no unexplained or unrelated credential requests.
Persistence & Privilege
Flags are default (not always:true). The skill does not request persistent system-level presence or modify other skills/configs. It only instructs use of a local config file for storing service settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aipexbase-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aipexbase-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
aipexbase-cli 1.0.0 - Initial release providing CLI integration with AiPexBase BaaS service. - Supports database CRUD operations, application and table management, user authentication, and file uploads. - Includes detailed command reference and configuration guidance. - Provides JSON parameter formatting rules and common usage examples.
元数据
Slug aipexbase-cli
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

aipexbase-cli 是什么?

Use aipexbase-cli to operate AiPexBase BaaS service, supporting database operations, application management, user authentication, etc. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 176 次。

如何安装 aipexbase-cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aipexbase-cli」即可一键安装,无需额外配置。

aipexbase-cli 是免费的吗?

是的,aipexbase-cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

aipexbase-cli 支持哪些平台?

aipexbase-cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 aipexbase-cli?

由 KuaFuAI(@kuafuai)开发并维护,当前版本 v1.0.0。

💬 留言讨论