wework

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

WeWork

WeWork

Overview

概述

Use this skill to run
wework
safely and produce exact commands for location lookup, desk availability checks, booking, and calendar export. Prefer read-only commands first and only run booking once location and date are validated.
Read
references/commands.md
when you need full command and flag coverage. Read
references/example-output.md
when you need concrete output shapes for desks, locations, and bookings.
使用本技能安全运行
wework
命令,并生成用于位置查询、工位可用性检查、预订和日历导出的精确指令。优先使用只读命令,仅在确认位置和日期有效后再执行预订操作。
如需完整的命令及参数说明,请查阅
references/commands.md
。 如需获取工位、位置和预订的具体输出格式示例,请查阅
references/example-output.md

Runbook

操作手册

  1. Confirm installation and command availability.
  2. Confirm authentication source (env vars or flags).
  3. Resolve location candidates (
    locations
    ).
  4. Check availability for the target date (
    desks
    ).
  5. Run booking (
    book
    ).
  6. Verify final state (
    bookings
    ) and optionally export calendar (
    calendar
    ).
  1. 确认安装状态及命令可用性。
  2. 确认认证来源(环境变量或参数)。
  3. 确定目标位置候选选项(
    locations
    命令)。
  4. 检查目标日期的工位可用性(
    desks
    命令)。
  5. 执行预订操作(
    book
    命令)。
  6. 验证最终状态(
    bookings
    命令),并可选择性导出日历(
    calendar
    命令)。

Installation And Auth

安装与认证

Install the CLI:
bash
npm install -g wework-cli
Use environment variables by default:
bash
export WEWORK_USERNAME="your_username"
export WEWORK_PASSWORD="your_password"
For installed CLI usage with env credentials:
bash
wework bookings
Use
--username
and
--password
only when explicitly requested.
安装CLI:
bash
npm install -g wework-cli
默认使用环境变量进行认证:
bash
export WEWORK_USERNAME="your_username"
export WEWORK_PASSWORD="your_password"
使用已安装的CLI及环境变量凭证执行命令示例:
bash
wework bookings
仅在明确要求时使用
--username
--password
参数。

Common Tasks

常见任务

Use these as canonical examples:
bash
undefined
以下为标准示例:
bash
undefined

list locations in Tokyo

列出东京的所有位置

wework locations --city "tokyo"
wework locations --city "tokyo"

list available desks in Bangkok for a date

列出曼谷指定日期的可用工位

wework desks --city "Bangkok" --date 2025-12-09
wework desks --city "Bangkok" --date 2025-12-09

list available desks for one location UUID

列出指定位置UUID的可用工位

wework desks --location-uuid YOUR_LOCATION_UUID --date 2026-03-01
wework desks --location-uuid YOUR_LOCATION_UUID --date 2026-03-01

create booking range with city + space name

通过城市+空间名称创建多日预订

wework book --city "Tokyo" --name "Shibuya Scramble Square" --date 2026-02-18~2026-02-20
wework book --city "Tokyo" --name "Shibuya Scramble Square" --date 2026-02-18~2026-02-20

list upcoming bookings

列出即将到来的预订

wework bookings
wework bookings

write ICS file for calendar import

生成ICS文件用于日历导入

wework calendar --calendar-path ./wework_bookings.ics

For single-day bookings, keep `--date` in `YYYY-MM-DD`.
For multi-day booking ranges, use `YYYY-MM-DD~YYYY-MM-DD`.
wework calendar --calendar-path ./wework_bookings.ics

单日预订时,`--date`参数需使用`YYYY-MM-DD`格式。
多日预订范围需使用`YYYY-MM-DD~YYYY-MM-DD`格式。

Output Strategy

输出策略

Use default CLI output for interactive use. This CLI does not currently expose a JSON output flag in
--help
, so for automation treat output as text and parse conservatively.
交互式使用时采用CLI默认输出格式。 当前CLI在
--help
中未提供JSON输出参数,因此自动化场景下需将输出视为文本并谨慎解析。

Safety Checks

安全检查

Before
book
operations:
  1. Confirm the target location exists (
    locations
    ).
  2. Confirm desk availability for the same date (
    desks
    ).
  3. Use explicit
    --date
    in
    YYYY-MM-DD
    format.
  4. Verify result with
    bookings
    after booking.
If authentication fails, re-check
WEWORK_USERNAME
and
WEWORK_PASSWORD
values, or explicitly pass
--username
/
--password
.
执行
book
操作前需完成以下检查:
  1. 确认目标位置存在(使用
    locations
    命令)。
  2. 确认指定日期的工位可用(使用
    desks
    命令)。
  3. 使用
    YYYY-MM-DD
    格式的明确
    --date
    参数。
  4. 预订完成后使用
    bookings
    命令验证结果。
若认证失败,请重新检查
WEWORK_USERNAME
WEWORK_PASSWORD
的值,或显式传递
--username
/
--password
参数。

Version Notes

版本说明

/Users/david/src/wework-cli/README.md
includes older examples that use positional date arguments and a
me
command. Current live CLI help (checked via
wework --help
and subcommand
--help
) uses
--date
flags for
book
/
desks
and does not expose
me
. Prefer live command help when the README and binary behavior differ.
/Users/david/src/wework-cli/README.md
包含使用位置日期参数和
me
命令的旧示例。 当前可用的CLI帮助信息(通过
wework --help
及子命令
--help
查看)显示
book
/
desks
命令使用
--date
参数,且未提供
me
命令。 当README文档与二进制文件行为不一致时,优先以实时命令帮助信息为准。