cs spaces

List the spaces you are in, by the name every other cs command takes for a space.

cs spaces lists the spaces you are in, with your level in each. The first column is the name that other commands take for a space: ~ is your own space, everyone the everyone space, and a team space is its slug. What a space is, and what each level allows, is on Authentication.

Usage

cs spaces             # the open spaces you are in
cs spaces --closed    # closed spaces too
cs spaces --json      # the same list as JSON
Output
SPACE     KIND      LEVEL   MEMBERS  NAME
~         personal  manage  0        My Space
everyone  everyone  use     12       Everyone
growth    team      manage  4        Growth

LEVEL is your level in the space: view, use or manage. MEMBERS counts the space's roster; a personal space has no roster, so it shows 0. With --closed, a closed space ends its name with (closed). A closed space takes nothing new, so no command accepts its name.

--json prints an array. Each entry has id, address (the name in the first column), kind, slug, name, level, closed and memberCount.

cs spaces acts with CS_API_KEY when it is set, and with your cs login session otherwise.

Where a space name goes

These commands take a space by the name in the first column:

  • cs drive: a path in drive://everyone/… is in the everyone space, and cs drive share --to <space> shares a file with a space.
  • cs tie: --space puts this machine in a space, and cs tie move --space moves it.
  • cs tasks and cs routines: --space puts a task or a routine in a space, or lists by one.
  • cs models stats --space shows only the seats in one space.

A name that matches no open space you are in is refused, nothing changes, and the command exits with code 1:

Output
Error: you are in no open space named "growht": `~` is your own space, `everyone` the everyone space, any other name a team space's slug; `cs spaces` lists them