nexudus
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNexudus CLI Agent Skill
Nexudus CLI Agent 技能
You can manage Nexudus coworking spaces through the CLI tool. This skill teaches you how to authenticate, query data, and perform CRUD operations against the Nexudus platform API.
nexudus你可以通过 CLI工具管理Nexudus联合办公空间。本技能将教你如何进行身份验证、查询数据,以及对Nexudus平台API执行CRUD操作。
nexudusAgent Invariants
Agent 固定规则
-
Always useflag on every CLI call. This returns a structured JSON envelope optimised for machine consumption.
--agent -
Parse the JSON envelope before acting on results. The envelope has this shape:json
{ "ok": true, "data": { ... }, "summary": "Human-readable summary", "breadcrumbs": ["entity", "action"], "meta": { "total": 10, "page": 1, "pageSize": 25, "totalPages": 1 } } -
Checkfirst. If
okisok, readfalsefor the error message and stop.summary -
Never prompt the user for credentials interactively. Ifis
okwith an auth error, tell the user to runfalsemanually.nexudus login -
Useor
--yeson delete commands to skip interactive confirmation prompts.-y -
Usewhen you need raw data for scripting. Use
--jsonwhen you want the envelope with summary.--agent -
List responses omit collection properties. The API only returns list/array fields (e.g.,,
Tariffs,Teams) when fetching a single entity by ID (LinkedResources). List commands return a simplified projection without these fields. If you need to read or verify a collection property, always fetch the individual entity first.get <id> -
Use the current user's defaults for business, currency, country, and timezone. Before creating or updating entities that require a business (location), currency, country, or timezone, runand use the defaults from the response:
nexudus whoami --agent- — use as
DefaultBusinessIdwhen creating entities scoped to a location.--business - — use as
DefaultCurrencyIdwhen a currency is needed.--currency-id - — for display/reference purposes.
DefaultCurrencyCode - — use as
DefaultCountryIdwhen a country is needed.--country-id - — use as
DefaultSimpleTimeZoneIdwhen a timezone is needed.--timezone-id
Only ask the user to specify these values if they explicitly want to override the defaults.
-
所有CLI调用必须使用参数。该参数会返回一个针对机器处理优化的结构化JSON信封。
--agent -
在处理结果前需解析JSON信封。信封结构如下:json
{ "ok": true, "data": { ... }, "summary": "Human-readable summary", "breadcrumbs": ["entity", "action"], "meta": { "total": 10, "page": 1, "pageSize": 25, "totalPages": 1 } } -
首先检查字段。如果
ok为ok,请读取false获取错误信息并停止操作。summary -
切勿以交互方式提示用户输入凭据。如果因身份验证错误导致为
ok,请告知用户手动运行false。nexudus login -
删除命令需使用或
--yes参数,以跳过交互确认提示。-y -
编写脚本需要原始数据时使用参数。需要带摘要的信封时使用
--json参数。--agent -
列表响应会省略集合属性。仅当通过ID获取单个实体()时,API才会返回列表/数组字段(如
get <id>、Tariffs、Teams)。列表命令返回的是简化的投影结果,不包含这些字段。如果需要读取或验证集合属性,请始终先获取单个实体。LinkedResources -
使用当前用户的业务、货币、国家和时区默认值。在创建或更新需要指定业务(地点)、货币、国家或时区的实体之前,运行并使用响应中的默认值:
nexudus whoami --agent- — 创建限定地点的实体时,用作
DefaultBusinessId参数的值。--business - — 需要指定货币时,用作
DefaultCurrencyId参数的值。--currency-id - — 用于显示/参考。
DefaultCurrencyCode - — 需要指定国家时,用作
DefaultCountryId参数的值。--country-id - — 需要指定时区时,用作
DefaultSimpleTimeZoneId参数的值。--timezone-id
仅当用户明确想要覆盖默认值时,才要求用户指定这些值。
Bootstrapping
初始化
Run diagnostics first to verify the CLI is ready:
shell
nexudus doctor --agentThis returns CLI version, .NET runtime, OS, credential status, config file location, API connectivity, and all available commands. Check and before proceeding.
data.CredentialsStoreddata.ApiStatusIf credentials are missing, instruct the user:
Runto authenticate with your Nexudus account.nexudus login
先运行诊断命令验证CLI是否就绪:
shell
nexudus doctor --agent该命令会返回CLI版本、.NET运行时、操作系统、凭据状态、配置文件位置、API连通性以及所有可用命令。在继续操作前,请检查和。
data.CredentialsStoreddata.ApiStatus如果缺少凭据,请指导用户:
运行以使用你的Nexudus账户进行身份验证。nexudus login
CLI Introspection
CLI 自省
Discover available commands and options at any time:
shell
nexudus --help
nexudus businesses --help
nexudus products --help
nexudus config --helpEach command also supports for detailed option information:
--helpshell
nexudus businesses update --help
nexudus products create --help随时查看可用命令和选项:
shell
nexudus --help
nexudus businesses --help
nexudus products --help
nexudus config --help每个命令也支持参数以查看详细选项信息:
--helpshell
nexudus businesses update --help
nexudus products create --helpCommand Reference
命令参考
Authentication
身份验证
| Command | Description |
|---|---|
| Authenticate (interactive prompt) |
| Clear stored credentials |
| Show current authenticated user |
| 命令 | 描述 |
|---|---|
| 身份验证(交互提示) |
| 清除存储的凭据 |
| 显示当前已认证用户 |
Configuration
配置
| Command | Description |
|---|---|
| Read a config value |
| Set a config value |
Config keys:
base-url| 命令 | 描述 |
|---|---|
| 读取配置值 |
| 设置配置值 |
配置键:
base-urlBusinesses
业务(Businesses)
Businesses support Search, Get, and Update (no Create or Delete via API).
| Command | Description |
|---|---|
| List all businesses |
| Search businesses by name |
| Paginated list |
| Get single business |
| Update business fields |
业务支持搜索、获取和更新操作(API不支持创建或删除)。
| 命令 | 描述 |
|---|---|
| 列出所有业务 |
| 按名称搜索业务 |
| 分页列表 |
| 获取单个业务详情 |
| 更新业务字段 |
Business update options
业务更新选项
--name--short-intro--about--quote--terms--website--web-contact--privacy-url--cookie-url--address--street-name--street-number--neighborhood--city--state--postcode--country-id--longitude--latitude--phone--fax--email--contact-phone--contact-email--currency-id--timezone-id--default-language--venue-type--tags--floors--floor-space--floor-space-unit--passport-published--passport-name--passport-tagline--passport-description--logo-url--banner-url--nexio-banner-url--passport-banner-url--name--short-intro--about--quote--terms--website--web-contact--privacy-url--cookie-url--address--street-name--street-number--neighborhood--city--state--postcode--country-id--longitude--latitude--phone--fax--email--contact-phone--contact-email--currency-id--timezone-id--default-language--venue-type--tags--floors--floor-space--floor-space-unit--passport-published--passport-name--passport-tagline--passport-description--logo-url--banner-url--nexio-banner-url--passport-banner-urlProducts
产品(Products)
Products support full CRUD plus entity commands.
| Command | Description |
|---|---|
| List all products |
| Search products by name |
| Filter by business |
| Paginated list |
| Get single product |
| Create product |
| Update product |
| Delete product (no prompt) |
| List available entity commands |
| Run entity command |
产品支持完整的CRUD操作及实体命令。
| 命令 | 描述 |
|---|---|
| 列出所有产品 |
| 按名称搜索产品 |
| 按业务筛选产品 |
| 分页列表 |
| 获取单个产品详情 |
| 创建产品 |
| 更新产品 |
| 删除产品(无提示) |
| 列出可用实体命令 |
| 执行实体命令 |
Product create options
产品创建选项
--name--business--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--financial-account-id--name--business--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--financial-account-idProduct update options
产品更新选项
--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-id--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-idDiagnostics
诊断
shell
nexudus doctor --agentshell
nexudus doctor --agentGlobal Flags
全局参数
| Flag | Description |
|---|---|
| JSON envelope with summary (use this) |
| Raw JSON envelope |
| Markdown output |
| Override API base URL |
| 参数 | 描述 |
|---|---|
| 带摘要的JSON信封(推荐使用) |
| 原始JSON信封 |
| Markdown格式输出 |
| 覆盖API基础URL |
Output Envelope
输出信封
All commands produce a JSON envelope when or is used:
--agent--jsonjson
{
"ok": true,
"data": [ ... ],
"summary": "Found 3 businesses (page 1/1)",
"breadcrumbs": ["businesses", "list"],
"meta": {
"total": 3,
"page": 1,
"pageSize": 25,
"totalPages": 1
}
}- :
okon success,trueon failure.false - : The response payload — an object for single-entity operations, an array for lists, or null on some failures.
data - : Human-readable result description.
summary - : Command path that produced the output (e.g.,
breadcrumbs).["products", "create"] - : Pagination metadata for list operations (present only on list commands).
meta
当使用或参数时,所有命令都会生成JSON信封:
--agent--jsonjson
{
"ok": true,
"data": [ ... ],
"summary": "Found 3 businesses (page 1/1)",
"breadcrumbs": ["businesses", "list"],
"meta": {
"total": 3,
"page": 1,
"pageSize": 25,
"totalPages": 1
}
}- :成功时为
ok,失败时为true。false - :响应负载——单个实体操作返回对象,列表操作返回数组,部分失败场景返回null。
data - :人类可读的结果描述。
summary - :生成输出的命令路径(如
breadcrumbs)。["products", "create"] - :列表操作的分页元数据(仅列表命令会返回)。
meta
Error envelope
错误信封
json
{
"ok": false,
"data": null,
"summary": "Not logged in. Run 'nexudus login' first.",
"breadcrumbs": ["businesses", "list"]
}json
{
"ok": false,
"data": null,
"summary": "Not logged in. Run 'nexudus login' first.",
"breadcrumbs": ["businesses", "list"]
}Decision Trees
决策树
"Find and display a business"
"查找并显示某个业务"
- (or
nexudus businesses list --agentif searching)--query "name" - Parse array, find the target business
data - for full details
nexudus businesses get <id> --agent
- 运行(如果是搜索则使用
nexudus businesses list --agent)--query "name" - 解析数组,找到目标业务
data - 运行获取完整详情
nexudus businesses get <id> --agent
"Create a <entity>"
"创建一个<实体>"
- First find the business ID:
nexudus businesses list --agent nexudus <entity> create --name "Day Pass" --price 25.00 --business <businessId> --agent- Check is
ok, readtruefor the new entity IDdata.Id
- 首先获取业务ID:
nexudus businesses list --agent - 运行
nexudus <entity> create --name "Day Pass" --price 25.00 --business <businessId> --agent - 检查是否为
ok,读取true获取新实体的IDdata.Id
"Update a <entity> <property>"
"更新<实体>的<属性>"
- to verify the entity exists
nexudus <entity> get <id> --agent nexudus <entity> update <id> --<property> <value> --agent- Verify the update by checking the returned
data
- 运行验证实体存在
nexudus <entity> get <id> --agent - 运行
nexudus <entity> update <id> --<property> <value> --agent - 通过检查返回的验证更新是否成功
data
"Delete a <entity>"
"删除一个<实体>"
- to confirm the entity exists
nexudus <entity> get <id> --agent nexudus <entity> delete <id> --yes --agent- Check is
oktrue
- 运行确认实体存在
nexudus <entity> get <id> --agent - 运行
nexudus <entity> delete <id> --yes --agent - 检查是否为
oktrue
"List <entity> for a specific business"
"列出特定业务的<实体>"
nexudus <entity> list --business <businessId> --agent- For pagination: add
--page N --size M
- 运行
nexudus <entity> list --business <businessId> --agent - 如需分页:添加参数
--page N --size M
"Run an entity command on <entity>"
"对<实体>执行实体命令"
- to discover available commands
nexudus <entity> commands --agent nexudus <entity> run-command <commandKey> <id1,id2> --agent- Add parameters with if the command requires them
-p Name=Value
- 运行查看可用命令
nexudus <entity> commands --agent - 运行
nexudus <entity> run-command <commandKey> <id1,id2> --agent - 如果命令需要参数,使用添加
-p Name=Value
"Check CLI health"
"检查CLI健康状态"
nexudus doctor --agent- Verify is
data.CredentialsStoredtrue - Verify is
data.ApiStatus"OK"
- 运行
nexudus doctor --agent - 验证为
data.CredentialsStoredtrue - 验证为
data.ApiStatus"OK"
"Add passes to a product"
"为产品添加通行证"
ProductTimePasses link a TimePass to a Product so that customers purchasing the product automatically receive those passes.
- Find the product: → note the
nexudus products list --query "Dat Pass Bundle" --agentId - Find (or create) the time pass: → note the
nexudus timepasses list --query "Day Pass" --agentId - Create the link:
shell
nexudus producttimepasses create \ --product-id <productId> \ --time-pass-id <timePassId> \ --passes-included 10 \ --expire-time-in-months 1 \ --expire-time-in-weeks 0 \ --expires-in 30 \ --agent - Check is
ok, readtruefor the new link IDdata.Id
ProductTimePasses用于将TimePass与产品关联,以便购买该产品的客户自动获得这些通行证。
- 查找产品:→ 记录
nexudus products list --query "Dat Pass Bundle" --agentId - 查找(或创建)TimePass:→ 记录
nexudus timepasses list --query "Day Pass" --agentId - 创建关联:
shell
nexudus producttimepasses create \ --product-id <productId> \ --time-pass-id <timePassId> \ --passes-included 10 \ --expire-time-in-months 1 \ --expire-time-in-weeks 0 \ --expires-in 30 \ --agent - 检查是否为
ok,读取true获取新关联的IDdata.Id
"List passes included in a product"
"列出产品包含的通行证"
nexudus producttimepasses list --agent- Filter results where matches the target product
ProductId
- 运行
nexudus producttimepasses list --agent - 筛选与目标产品匹配的结果
ProductId
"Update passes included in a product"
"更新产品包含的通行证"
- → find the link by
nexudus producttimepasses list --agentandProductIdTimePassId nexudus producttimepasses update <id> --passes-included 20 --agent- Verify the update by checking the returned
data
- 运行→ 通过
nexudus producttimepasses list --agent和ProductId找到关联TimePassId - 运行
nexudus producttimepasses update <id> --passes-included 20 --agent - 通过检查返回的验证更新是否成功
data
"Remove a pass from a product"
"从产品中移除通行证"
- → find the link by
nexudus producttimepasses list --agentandProductIdTimePassId nexudus producttimepasses delete <id> --yes --agent- Check is
oktrue
- 运行→ 通过
nexudus producttimepasses list --agent和ProductId找到关联TimePassId - 运行
nexudus producttimepasses delete <id> --yes --agent - 检查是否为
oktrue
Error Handling
错误处理
| Error | Meaning | Action |
|---|---|---|
| No stored credentials | Tell user to run |
| Invalid credentials | Tell user to run |
| Insufficient permissions | Inform user they lack API permissions |
| Entity doesn't exist | Check the ID and try again |
| Create validation error | Check required fields (name, business, price) |
| Non-zero exit code | Command failed | Read stderr or the JSON envelope for details |
| 错误 | 含义 | 操作 |
|---|---|---|
| 无存储凭据 | 告知用户运行 |
| 凭据无效 | 告知用户重新运行 |
| 权限不足 | 告知用户缺少API权限 |
| 实体不存在 | 检查ID后重试 |
| 创建验证错误 | 检查必填字段(名称、业务、价格) |
| 非零退出码 | 命令执行失败 | 读取stderr或JSON信封获取详细信息 |
Entity Models
实体模型
Business (key fields)
业务(关键字段)
IdNameAddressTownCityStatePostalCodeCountryNamePhoneEmailContactWebAddressCurrencyCodeTagsPassportPublishedVenueTypeIdNameAddressTownCityStatePostalCodeCountryNamePhoneEmailContactWebAddressCurrencyCodeTagsPassportPublishedVenueTypeProducts
产品
Products support Search, Get, Create, Update, Delete.
Products also support entity commands.
| Command | Description |
|---|---|
| List all products |
| Search products by name |
| Paginated list |
| Get single product |
| Create product |
| Update product |
| Delete product (no prompt) |
| List available entity commands |
| Run entity command |
产品支持搜索、获取、创建、更新、删除操作。
产品还支持实体命令。
| 命令 | 描述 |
|---|---|
| 列出所有产品 |
| 按名称搜索产品 |
| 分页列表 |
| 获取单个产品详情 |
| 创建产品 |
| 更新产品 |
| 删除产品(无提示) |
| 列出可用实体命令 |
| 执行实体命令 |
Product create options
产品创建选项
--business--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-id--business--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-idProduct update options
产品更新选项
--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-id--name--price--description--sku--tags--visible--currency-id--tax-rate-id--display-order--only-for-members--only-for-contacts--track-stock--archived--financial-account-idProduct (key fields)
产品(关键字段)
IdBusinessIdBusinessNameNamePriceDescriptionSkuTagsVisibleCurrencyCodeDisplayOrderOnlyForMembersOnlyForContactsTrackStockCurrentStockArchivedIdBusinessIdBusinessNameNamePriceDescriptionSkuTagsVisibleCurrencyCodeDisplayOrderOnlyForMembersOnlyForContactsTrackStockCurrentStockArchivedTimePasses
TimePasses
Passes allow customers to check in to a coworking space. There are two kinds:
- Day Pass — valid for a single calendar day. Created with omitted (null). The customer can check in any number of times during that day.
--minutes-included - Time Pass — valid across multiple days up to a fixed amount of time. Created with set. The customer can check in until the included minutes are exhausted.
--minutes-included <minutes>
TimePasses support Search, Get, Create, Update, Delete.
| Command | Description |
|---|---|
| List all timepasses |
| Search timepasses by name |
| Paginated list |
| Get single timepass |
| Create timepass |
| Update timepass |
| Delete timepass (no prompt) |
通行证允许客户签到联合办公空间。分为两种类型:
- 日通行证(Day Pass) — 单个日历日有效。创建时省略参数(设为null)。客户可在当日多次签到。
--minutes-included - 时长通行证(Time Pass) — 多日内有效,总时长固定。创建时设置参数。客户可签到直到包含的时长用完。
--minutes-included <minutes>
TimePasses支持搜索、获取、创建、更新、删除操作。
| 命令 | 描述 |
|---|---|
| 列出所有TimePass |
| 按名称搜索TimePass |
| 分页列表 |
| 获取单个TimePass详情 |
| 创建TimePass |
| 更新TimePass |
| 删除TimePass(无提示) |
TimePass create options
TimePass创建选项
--business--name--invoice-display--price--minutes-included--counts-towards-plan--payg-members--payg-contacts--use-priority--currency-id--tax-rate-id--reduced-tax-rate-id--exempt-tax-rate-id--financial-account-id--kisi-group-id--door-guard-group-id--allow-network-checkin--only-for-contacts--only-for-members--archived--business--name--invoice-display--price--minutes-included--counts-towards-plan--payg-members--payg-contacts--use-priority--currency-id--tax-rate-id--reduced-tax-rate-id--exempt-tax-rate-id--financial-account-id--kisi-group-id--door-guard-group-id--allow-network-checkin--only-for-contacts--only-for-members--archivedTimePass update options
TimePass更新选项
--name--invoice-display--price--minutes-included--counts-towards-plan--payg-members--payg-contacts--use-priority--currency-id--tax-rate-id--reduced-tax-rate-id--exempt-tax-rate-id--financial-account-id--kisi-group-id--door-guard-group-id--allow-network-checkin--only-for-contacts--only-for-members--archived--name--invoice-display--price--minutes-included--counts-towards-plan--payg-members--payg-contacts--use-priority--currency-id--tax-rate-id--reduced-tax-rate-id--exempt-tax-rate-id--financial-account-id--kisi-group-id--door-guard-group-id--allow-network-checkin--only-for-contacts--only-for-members--archivedTimePass (key fields)
TimePass(关键字段)
IdBusinessIdBusinessNameNamePriceMinutesIncludedCurrencyCodeOnlyForContactsOnlyForMembersArchivedIdBusinessIdBusinessNameNamePriceMinutesIncludedCurrencyCodeOnlyForContactsOnlyForMembersArchivedProductTimePasses
ProductTimePasses
ProductTimePasses support Search, Get, Create, Update, Delete.
| Command | Description |
|---|---|
| List all producttimepasses |
| Search producttimepasses by name |
| Paginated list |
| Get single producttimepass |
| Create producttimepass |
| Update producttimepass |
| Delete producttimepass (no prompt) |
ProductTimePasses支持搜索、获取、创建、更新、删除操作。
| 命令 | 描述 |
|---|---|
| 列出所有ProductTimePasses |
| 按名称搜索ProductTimePasses |
| 分页列表 |
| 获取单个ProductTimePass详情 |
| 创建ProductTimePass |
| 更新ProductTimePass |
| 删除ProductTimePass(无提示) |
ProductTimePass create options
ProductTimePass创建选项
--product-id--time-pass-id--passes-included--expire-time-in-months--expire-time-in-weeks--expiration-type--expires-in--product-id--time-pass-id--passes-included--expire-time-in-months--expire-time-in-weeks--expiration-type--expires-inProductTimePass update options
ProductTimePass更新选项
--passes-included--expire-time-in-months--expire-time-in-weeks--expiration-type--expires-in--passes-included--expire-time-in-months--expire-time-in-weeks--expiration-type--expires-inProductTimePass (key fields)
ProductTimePass(关键字段)
IdProductIdProductNameTimePassIdTimePassNamePassesIncludedIdProductIdProductNameTimePassIdTimePassNamePassesIncludedResources
资源(Resources)
Resources support Search, Get, Create, Update, Delete.
| Command | Description |
|---|---|
| List all resources |
| Search resources by name |
| Paginated list |
| Get single resource |
| Create resource |
| Update resource |
| Delete resource (no prompt) |
资源支持搜索、获取、创建、更新、删除操作。
| 命令 | 描述 |
|---|---|
| 列出所有资源 |
| 按名称搜索资源 |
| 分页列表 |
| 获取单个资源详情 |
| 创建资源 |
| 更新资源 |
| 删除资源(无提示) |
Resource create options
资源创建选项
--business--name--system-resource-type--resource-type-id--description--email-confirmation-content--visible--requires-confirmation--display-order--group-name--projector--internet--conference-phone--standard-phone--white-board--large-display--catering--tea-and-coffee--drinks--security-lock--cctv--voice-recorder--air-conditioning--heating--natural-light--standing-desk--quiet-zone--wireless-charger--privacy-screen--soundproof--video-conferencing--dual-display-screen--display-screen--wireless-presentation--pa-system--desktop-monitor--flip-chart--secure-storage--allow-multiple-bookings--allocation--limit-visitors-to-allocation--book-in-advance-limit--late-booking-limit--late-cancellation-limit--interval-limit--no-return-policy--no-return-policy-all-resources--no-return-policy-all-users--max-booking-length--min-booking-length--tariffs--added-tariffs--removed-tariffs--teams--added-teams--removed-teams--shifts--linked-resources--added-linked-resources--removed-linked-resources--longitude--latitude--hide-in-calendar--archived--use-shared-zoom-account--zoom-user-id--last-cleaned-at--linked-resource-ids--only-for-contacts--only-for-members--only-for-invoicing-business--booking-availability-exceptions--added-booking-availability-exceptions--removed-booking-availability-exceptions--cancellation-fee-product-id--charge-cancellation-fee--cancellation-fee-type--cancellation-fee-amount--cancellation-fee-percentage--repeat-booking-quantity-limit--repeat-booking-period-limit-in-months--new-picture-url--picture-file-name--clear-picture-file--business--name--system-resource-type--resource-type-id--description--email-confirmation-content--visible--requires-confirmation--display-order--group-name--projector--internet--conference-phone--standard-phone--white-board--large-display--catering--tea-and-coffee--drinks--security-lock--cctv--voice-recorder--air-conditioning--heating--natural-light--standing-desk--quiet-zone--wireless-charger--privacy-screen--soundproof--video-conferencing--dual-display-screen--display-screen--wireless-presentation--pa-system--desktop-monitor--flip-chart--secure-storage--allow-multiple-bookings--allocation--limit-visitors-to-allocation--book-in-advance-limit--late-booking-limit--late-cancellation-limit--interval-limit--no-return-policy--no-return-policy-all-resources--no-return-policy-all-users--max-booking-length--min-booking-length--tariffs--added-tariffs--removed-tariffs--teams--added-teams--removed-teams--shifts--linked-resources--added-linked-resources--removed-linked-resources--longitude--latitude--hide-in-calendar--archived--use-shared-zoom-account--zoom-user-id--last-cleaned-at--linked-resource-ids--only-for-contacts--only-for-members--only-for-invoicing-business--booking-availability-exceptions--added-booking-availability-exceptions--removed-booking-availability-exceptions--cancellation-fee-product-id--charge-cancellation-fee--cancellation-fee-type--cancellation-fee-amount--cancellation-fee-percentage--repeat-booking-quantity-limit--repeat-booking-period-limit-in-months--new-picture-url--picture-file-name--clear-picture-fileResource update options
资源更新选项
--name--system-resource-type--resource-type-id--description--email-confirmation-content--visible--requires-confirmation--display-order--group-name--projector--internet--conference-phone--standard-phone--white-board--large-display--catering--tea-and-coffee--drinks--security-lock--cctv--voice-recorder--air-conditioning--heating--natural-light--standing-desk--quiet-zone--wireless-charger--privacy-screen--soundproof--video-conferencing--dual-display-screen--display-screen--wireless-presentation--pa-system--desktop-monitor--flip-chart--secure-storage--allow-multiple-bookings--allocation--limit-visitors-to-allocation--book-in-advance-limit--late-booking-limit--late-cancellation-limit--interval-limit--no-return-policy--no-return-policy-all-resources--no-return-policy-all-users--max-booking-length--min-booking-length--tariffs--added-tariffs--removed-tariffs--teams--added-teams--removed-teams--shifts--linked-resources--added-linked-resources--removed-linked-resources--longitude--latitude--hide-in-calendar--archived--use-shared-zoom-account--zoom-user-id--last-cleaned-at--linked-resource-ids--only-for-contacts--only-for-members--only-for-invoicing-business--booking-availability-exceptions--added-booking-availability-exceptions--removed-booking-availability-exceptions--cancellation-fee-product-id--charge-cancellation-fee--cancellation-fee-type--cancellation-fee-amount--cancellation-fee-percentage--repeat-booking-quantity-limit--repeat-booking-period-limit-in-months--new-picture-url--picture-file-name--clear-picture-file--name--system-resource-type--resource-type-id--description--email-confirmation-content--visible--requires-confirmation--display-order--group-name--projector--internet--conference-phone--standard-phone--white-board--large-display--catering--tea-and-coffee--drinks--security-lock--cctv--voice-recorder--air-conditioning--heating--natural-light--standing-desk--quiet-zone--wireless-charger--privacy-screen--soundproof--video-conferencing--dual-display-screen--display-screen--wireless-presentation--pa-system--desktop-monitor--flip-chart--secure-storage--allow-multiple-bookings--allocation--limit-visitors-to-allocation--book-in-advance-limit--late-booking-limit--late-cancellation-limit--interval-limit--no-return-policy--no-return-policy-all-resources--no-return-policy-all-users--max-booking-length--min-booking-length--tariffs--added-tariffs--removed-tariffs--teams--added-teams--removed-teams--shifts--linked-resources--added-linked-resources--removed-linked-resources--longitude--latitude--hide-in-calendar--archived--use-shared-zoom-account--zoom-user-id--last-cleaned-at--linked-resource-ids--only-for-contacts--only-for-members--only-for-invoicing-business--booking-availability-exceptions--added-booking-availability-exceptions--removed-booking-availability-exceptions--cancellation-fee-product-id--charge-cancellation-fee--cancellation-fee-type--cancellation-fee-amount--cancellation-fee-percentage--repeat-booking-quantity-limit--repeat-booking-period-limit-in-months--new-picture-url--picture-file-name--clear-picture-fileResource (key fields)
资源(关键字段)
IdBusinessIdBusinessNameNameResourceTypeIdResourceTypeNameVisibleGroupNameAllocationArchivedOnlyForContactsOnlyForMembersList properties (only returned by , not by ): , , , , , , , , , , ,
getlistTariffsAddedTariffsRemovedTariffsTeamsAddedTeamsRemovedTeamsLinkedResourcesAddedLinkedResourcesRemovedLinkedResourcesBookingAvailabilityExceptionsAddedBookingAvailabilityExceptionsRemovedBookingAvailabilityExceptionsResource Type (): Every resource requires aExtraServicethat references anResourceTypeIdentity. The resource type defines the hourly/daily rates and billing rules for bookings. You cannot create a resource without first knowing the ID of an existing resource type.ExtraService
IdBusinessIdBusinessNameNameResourceTypeIdResourceTypeNameVisibleGroupNameAllocationArchivedOnlyForContactsOnlyForMembers列表属性(仅命令返回,命令不返回): , , , , , , , , , , ,
getlistTariffsAddedTariffsRemovedTariffsTeamsAddedTeamsRemovedTeamsLinkedResourcesAddedLinkedResourcesRemovedLinkedResourcesBookingAvailabilityExceptionsAddedBookingAvailabilityExceptionsRemovedBookingAvailabilityExceptions资源类型(): 每个资源都需要一个ExtraService,引用ResourceTypeId实体。资源类型定义了预订的时/日费率和计费规则。如果不知道现有资源类型的ID,无法创建资源。ExtraService
ResourceTypes
资源类型(ResourceTypes)
ResourceTypes support Search, Get, Create, Update, Delete.
| Command | Description |
|---|---|
| List all resourcetypes |
| Search resourcetypes by name |
| Paginated list |
| Get single resourcetype |
| Create resourcetype |
| Update resourcetype |
| Delete resourcetype (no prompt) |
ResourceTypes支持搜索、获取、创建、更新、删除操作。
| 命令 | 描述 |
|---|---|
| 列出所有资源类型 |
| 按名称搜索资源类型 |
| 分页列表 |
| 获取单个资源类型详情 |
| 创建资源类型 |
| 更新资源类型 |
| 删除资源类型(无提示) |
ResourceType create options
资源类型创建选项
--business--name--business--nameResourceType update options
资源类型更新选项
--name--nameResourceType (key fields)
资源类型(关键字段)
IdBusinessIdBusinessNameNameIdBusinessIdBusinessNameNameCurrencies
货币(Currencies)
Currencies support Search, Get (no Create or Delete via API).
| Command | Description |
|---|---|
| List all currencies |
| Search currencies by name |
| Paginated list |
| Get single currency |
货币支持搜索、获取操作(API不支持创建或删除)。
| 命令 | 描述 |
|---|---|
| 列出所有货币 |
| 按名称搜索货币 |
| 分页列表 |
| 获取单个货币详情 |
Countries
国家(Countries)
Countries support Search, Get (no Create or Delete via API).
| Command | Description |
|---|---|
| List all countries |
| Search countries by name |
| Paginated list |
| Get single country |
国家支持搜索、获取操作(API不支持创建或删除)。
| 命令 | 描述 |
|---|---|
| 列出所有国家 |
| 按名称搜索国家 |
| 分页列表 |
| 获取单个国家详情 |
Country (key fields)
国家(关键字段)
IdNameTwoDigitsCodeCultureIdNameTwoDigitsCodeCultureCurrency (key fields)
货币(关键字段)
IdNameCodeFormatIdNameCodeFormatImage Uploads
图片上传
Some entities have image properties (logo, banner, picture, etc.). To set an image, use the corresponding property, which accepts a publicly accessible URL. The Nexudus back-end downloads the image from that URL and stores it, so the URL must be reachable from the internet — local file paths or authenticated URLs will not work.
New{PropertyName}UrlThe naming convention is: for an image property called , the upload property is .
{PropertyName}New{PropertyName}Url| Entity | Image Property | CLI Option | API Property |
|---|---|---|---|
| Business | Logo | | |
| Business | BannerImage | | |
| Business | NexIoBannerImage | | |
| Business | PassportBanner | | |
| Resource | Picture | | |
Example — set a logo on a business:
shell
nexudus businesses update <id> --logo-url "https://example.com/logo.png" --agentExample — set a picture on a resource:
shell
nexudus resources update <id> --new-picture-url "https://example.com/room.jpg" --agent部分实体包含图片属性(logo、banner、picture等)。要设置图片,请使用对应的属性,该属性接受公开可访问的URL。Nexudus后端会从该URL下载图片并存储,因此URL必须能从互联网访问——本地文件路径或需要认证的URL无法使用。
New{PropertyName}Url命名规则:对于名为的图片属性,上传属性为。
{PropertyName}New{PropertyName}Url| 实体 | 图片属性 | CLI选项 | API属性 |
|---|---|---|---|
| 业务 | Logo | | |
| 业务 | BannerImage | | |
| 业务 | NexIoBannerImage | | |
| 业务 | PassportBanner | | |
| 资源 | Picture | | |
示例——为业务设置logo:
shell
nexudus businesses update <id> --logo-url "https://example.com/logo.png" --agent示例——为资源设置图片:
shell
nexudus resources update <id> --new-picture-url "https://example.com/room.jpg" --agentNexudus API Pattern
Nexudus API 模式
The Nexudus API follows a consistent REST pattern. Each entity at supports:
/api/{module}/{entities}| Operation | HTTP | URL |
|---|---|---|
| Search | GET | |
| Get one | GET | |
| Create | POST | |
| Update | PUT | |
| Delete | DELETE | |
| Commands | GET | |
| Run command | POST | |
Current entity mappings:
| Entity | Module | Path |
|---|---|---|
| Business | sys | businesses |
| Product | billing | products |
| TimePass | billing | timepasses |
| ProductTimePass | billing | producttimepasses |
| Resource | spaces | resources |
| ResourceType | spaces | resourcetypes |
| Currency | sys | currencies |
| Country | sys | countries |
Nexudus API遵循一致的REST模式。每个实体位于,支持以下操作:
/api/{module}/{entities}| 操作 | HTTP方法 | URL |
|---|---|---|
| 搜索 | GET | |
| 获取单个 | GET | |
| 创建 | POST | |
| 更新 | PUT | |
| 删除 | DELETE | |
| 查看命令 | GET | |
| 执行命令 | POST | |
当前实体映射:
| 实体 | 模块 | 路径 |
|---|---|---|
| Business | sys | businesses |
| Product | billing | products |
| TimePass | billing | timepasses |
| ProductTimePass | billing | producttimepasses |
| Resource | spaces | resources |
| ResourceType | spaces | resourcetypes |
| Currency | sys | currencies |
| Country | sys | countries |
Passing Multiple Values (List Options)
传递多个值(列表选项)
Some options accept a list of IDs (e.g., , , ). To pass multiple values, repeat the flag for each value:
--tariffs--teams--linked-resourcesshell
nexudus resources update <id> --tariffs 101 --tariffs 202 --tariffs 303 --agentDo not use comma-separated values or bracket syntax — each value needs its own flag.
部分选项接受ID列表(如、、)。要传递多个值,请为每个值重复参数:
--tariffs--teams--linked-resourcesshell
nexudus resources update <id> --tariffs 101 --tariffs 202 --tariffs 303 --agent请勿使用逗号分隔值或括号语法——每个值都需要单独的参数。
Tips
提示
- Use to fetch larger pages when you need to scan many records.
--size 100 - Combine with pagination for efficient searching.
--query - The accepts comma-separated IDs to batch operations:
run-command.nexudus products run-command archive 123,456,789 --agent - Business entities cannot be created or deleted via the API — only listed, viewed, and updated.
- Always pass with delete commands whegin running non-interactively.
--yes
- 当需要扫描大量记录时,使用获取更大的分页结果。
--size 100 - 结合和分页实现高效搜索。
--query - 接受逗号分隔的ID以批量操作:
run-command。nexudus products run-command archive 123,456,789 --agent - 业务实体无法通过API创建或删除——仅支持列出、查看和更新。
- 非交互式运行时,删除命令务必加上参数。
--yes