rently
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou have access to the CLI tool for managing a car rental SaaS platform.
rentlyAlways start by running to verify authentication before executing commands.
rently auth status您可以使用 CLI工具管理汽车租赁SaaS平台。
rently执行命令前,请始终先运行验证身份。
rently auth statusKey Concepts
核心概念
- Booking statuses: Reserved -> Confirmed -> Delivered -> Closed | Canceled | Quoted
- Places: pickup/dropoff locations (use to get IDs)
rently info places - 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
- 预订状态:已预订 -> 已确认 -> 已交付 -> 已完成 | 已取消 | 已报价
- 地点:取车/还车地点(使用获取ID)
rently info places - 分支机构:管理车队和运营的实体门店
- 车型分类:包含具体车型的车辆组别(经济型、SUV等)
- 附加服务:额外服务项目(GPS、儿童座椅、保险等)
- 运营操作:交付 = 将车辆交给客户;归还 = 客户归还车辆
Two Ways to Pass Data
两种数据传递方式
Commands that write data accept both individual options and :
--json-bodybash
undefined写入数据的命令支持两种方式:单独选项参数和:
--json-bodybash
undefinedOption 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"}'
undefinedrently bookings cancel --json-body '{"BookingId":2300,"Lastname":"Doe"}'
undefinedOutput Format
输出格式
- Default: compact JSON
- : indented JSON
--pretty - : ASCII table output — use this when listing results so the user can read them
--table - : choose which columns in table mode
--columns "Col1,Col2,Nested.Field"
- 默认:紧凑格式JSON
- :缩进格式JSON
--pretty - :ASCII表格输出 — 当用户需要查看或列出结果时使用该格式
--table - :在表格模式下选择要显示的列
--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 Doebash
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 DoeProcess 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 1bash
rently operations list-deliveries --branch-office-id 1
rently operations list-returns --branch-office-id 1Tips
提示
- Use when the user asks to see or list results, with
--tableto keep it readable--columns - Use JSON output (default) when you need to process data programmatically
- Use for nested objects or arrays
--json-body - Date format: ISO 8601
"2026-04-01T10:00:00" - Use and
rently info placesto discover valid IDs before creating bookingsrently info categories - Pagination: most list commands support and
--offset--limit - Run to see all options for any command
rently <command> <subcommand> --help
The user's request: $ARGUMENTS
- 当用户要求查看或列出结果时,使用格式,搭配
--table让输出更易读--columns - 当需要以编程方式处理数据时,使用JSON输出(默认格式)
- 处理嵌套对象或数组时使用
--json-body - 日期格式:ISO 8601
"2026-04-01T10:00:00" - 创建预订前,使用和
rently info places获取有效的IDrently info categories - 分页:大多数列表类命令支持和
--offset参数--limit - 运行查看任意命令的所有可用选项
rently <command> <subcommand> --help
用户请求:$ARGUMENTS