rently

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
You have access to the
rently
CLI tool for managing a car rental SaaS platform.
Always start by running
rently auth status
to verify authentication before executing commands.
您可以使用
rently
CLI工具管理汽车租赁SaaS平台。
执行命令前,请始终先运行
rently auth status
验证身份。

Key Concepts

核心概念

  • Booking statuses: Reserved -> Confirmed -> Delivered -> Closed | Canceled | Quoted
  • Places: pickup/dropoff locations (use
    rently info places
    to get IDs)
  • Branch offices: physical offices managing fleet and operations
  • Categories: vehicle groupings (economy, SUV, etc.) containing models
  • Additionals: extra services (GPS, child seat, insurance, etc.)
  • Operations: delivery = handing car to customer; return = customer returns car
  • 预订状态:已预订 -> 已确认 -> 已交付 -> 已完成 | 已取消 | 已报价
  • 地点:取车/还车地点(使用
    rently info places
    获取ID)
  • 分支机构:管理车队和运营的实体门店
  • 车型分类:包含具体车型的车辆组别(经济型、SUV等)
  • 附加服务:额外服务项目(GPS、儿童座椅、保险等)
  • 运营操作:交付 = 将车辆交给客户;归还 = 客户归还车辆

Two Ways to Pass Data

两种数据传递方式

Commands that write data accept both individual options and
--json-body
:
bash
undefined
写入数据的命令支持两种方式:单独选项参数和
--json-body
bash
undefined

Option 1: Individual parameters (simpler for flat data)

方式1:单独参数(适用于扁平数据,更简单)

rently bookings cancel --booking-id 2300 --lastname Doe
rently bookings cancel --booking-id 2300 --lastname Doe

Option 2: Raw JSON (required for nested objects like Customer, arrays, etc.)

方式2:原始JSON(适用于嵌套对象如Customer、数组等场景)

rently bookings cancel --json-body '{"BookingId":2300,"Lastname":"Doe"}'
undefined
rently bookings cancel --json-body '{"BookingId":2300,"Lastname":"Doe"}'
undefined

Output Format

输出格式

  • Default: compact JSON
  • --pretty
    : indented JSON
  • --table
    : ASCII table output — use this when listing results so the user can read them
  • --columns "Col1,Col2,Nested.Field"
    : choose which columns in table mode
  • 默认:紧凑格式JSON
  • --pretty
    :缩进格式JSON
  • --table
    :ASCII表格输出 — 当用户需要查看或列出结果时使用该格式
  • --columns "Col1,Col2,Nested.Field"
    :在表格模式下选择要显示的列

Common Workflows

常见工作流程

Search and book a car

搜索并预订车辆

bash
rently info places
rently search availability --from "2026-04-01T10:00:00" --to "2026-04-05T10:00:00" --from-place 1
rently search price --from "2026-04-01T10:00:00" --to "2026-04-05T10:00:00" --from-place 1 --model-id 5
rently bookings create --json-body '{"Customer":{"Id":123},"Category":{"Id":1},"FromDate":"2026-04-01T10:00:00","ToDate":"2026-04-05T10:00:00","DeliveryPlace":{"Id":9},"ReturnPlace":{"Id":9},"Currency":"USD","IlimitedKm":true}'
rently bookings reserve --booking-id 456 --lastname Doe
bash
rently info places
rently search availability --from "2026-04-01T10:00:00" --to "2026-04-05T10:00:00" --from-place 1
rently search price --from "2026-04-01T10:00:00" --to "2026-04-05T10:00:00" --from-place 1 --model-id 5
rently bookings create --json-body '{"Customer":{"Id":123},"Category":{"Id":1},"FromDate":"2026-04-01T10:00:00","ToDate":"2026-04-05T10:00:00","DeliveryPlace":{"Id":9},"ReturnPlace":{"Id":9},"Currency":"USD","IlimitedKm":true}'
rently bookings reserve --booking-id 456 --lastname Doe

Process delivery / return

处理交付/归还操作

bash
rently operations deliver --booking-id 2300 --kilometers 15000 --gasoline 8 --make-delivery --run-validations
rently operations return --booking-id 2300 --kilometers 15500 --gasoline 6 --make-return --run-validations --date "2026-04-05T10:00:00"
bash
rently operations deliver --booking-id 2300 --kilometers 15000 --gasoline 8 --make-delivery --run-validations
rently operations return --booking-id 2300 --kilometers 15500 --gasoline 6 --make-return --run-validations --date "2026-04-05T10:00:00"

Check today's operations

查看今日运营任务

bash
rently operations list-deliveries --branch-office-id 1
rently operations list-returns --branch-office-id 1
bash
rently operations list-deliveries --branch-office-id 1
rently operations list-returns --branch-office-id 1

Tips

提示

  • Use
    --table
    when the user asks to see or list results, with
    --columns
    to keep it readable
  • Use JSON output (default) when you need to process data programmatically
  • Use
    --json-body
    for nested objects or arrays
  • Date format: ISO 8601
    "2026-04-01T10:00:00"
  • Use
    rently info places
    and
    rently info categories
    to discover valid IDs before creating bookings
  • Pagination: most list commands support
    --offset
    and
    --limit
  • Run
    rently <command> <subcommand> --help
    to see all options for any command
The user's request: $ARGUMENTS
  • 当用户要求查看或列出结果时,使用
    --table
    格式,搭配
    --columns
    让输出更易读
  • 当需要以编程方式处理数据时,使用JSON输出(默认格式)
  • 处理嵌套对象或数组时使用
    --json-body
  • 日期格式:ISO 8601
    "2026-04-01T10:00:00"
  • 创建预订前,使用
    rently info places
    rently info categories
    获取有效的ID
  • 分页:大多数列表类命令支持
    --offset
    --limit
    参数
  • 运行
    rently <command> <subcommand> --help
    查看任意命令的所有可用选项
用户请求:$ARGUMENTS