WeWork CLI
Use this skill to operate the installed wework binary for real WeWork member tasks. The skill is about using the CLI that is already installed, not reimplementing WeWork API flows.
Prerequisites
- Confirm the
weworkbinary is onPATHbefore relying on it. - Authentication requires
WEWORK_USERNAMEandWEWORK_PASSWORD, or the equivalent--usernameand--passwordflags. - Prefer the environment variables over inline flags when both are possible.
- Never persist credentials, write them to files, or echo them back into user-visible output.
When To Use Which Command
- Use
wework locations --city ...first when the user does not know the location UUID. - Use
wework desks --date ...beforewework bookwhen the user wants to inspect availability. - Use
wework book --date ...only when the user explicitly wants to reserve a desk. - Use
wework bookingsfor current or upcoming reservations, andwework bookings --pastfor history. - Use
wework calendar --calendar-path ...when the user wants an.icsexport. - Use
wework mefor profile or membership context. wework quoteis a stable secondary command when the user wants cost or credit details without creating a booking.wework infois a stable secondary command for location amenities, hours, and entrance instructions.
Operating Guidance
- Prefer
--jsonwhen the result will be parsed or summarized programmatically. - If the location UUID is unknown, resolve it from
locations, then pass--location-uuidinto later commands. - If the user names a city and a specific WeWork, use
--cityplus--nameforbook,quote, orinfo. - For
desks, either--location-uuidor--cityis required. - For
bookandquote, either--location-uuidor both--cityand--nameare required. - Calendar exports default to
wework_bookings.ics; set--calendar-pathwhen the output filename matters.
Date Inputs
- Single date:
2026-03-15 - Multiple dates:
2026-03-15,2026-03-18,2026-03-20 - Inclusive range:
2026-03-15~2026-03-19
Read references/commands.md for exact invocation patterns.
Read references/auth.md when authentication or secret handling is relevant.
Read references/booking-flow.md when booking behavior or failures need diagnosis.
Failure Handling
- Missing credentials: tell the user the CLI expects
WEWORK_USERNAMEandWEWORK_PASSWORDor explicit flags. - Invalid city or location name: resolve with
wework locations --city ...first, then retry with the location UUID. - No desk availability: report that no spaces were returned for that date and location rather than implying a CLI bug.
- Booking or quote failure: distinguish between location resolution errors, availability errors, and API/authentication failures.
- Authentication failure: do not retry blindly with exposed secrets; ask the user to verify credentials or session state.