`coder sharing` has been hidden since it was added behind an experiment,
although Shared Workspaces is GA and the prose docs already use it.
This removes `Hidden: true`, regenerates `docs/reference/cli/sharing/*`,
and adds the pages to the docs manifest.
The shared workspaces guide and the persistent shared workspaces
tutorial now link to the new reference.
**Behavior change:** `coder sharing` and its subcommands now appear in
`coder --help`.
The commands themselves are unchanged.
The `sharing remove --user/--group` help text previously said "to share
the workspace with"; it now says "to remove from the workspace".
<details>
<summary>Decisions</summary>
- Follow-up not in this PR: `DELETE /workspaces/{workspace}/acl` has no
CLI caller.
</details>
Closes [CLI-22](https://linear.app/codercom/issue/CLI-22)
_This PR was generated by Coder Agents on behalf of @nickvigilante._
45 lines
1.0 KiB
Markdown
Generated
45 lines
1.0 KiB
Markdown
Generated
---
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
title: "`coder sharing remove`"
|
|
description: Remove shared access for users or groups from a workspace.
|
|
---
|
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
Remove shared access for users or groups from a workspace.
|
|
|
|
Aliases:
|
|
|
|
* unshare
|
|
* rm
|
|
|
|
## Usage
|
|
|
|
```console
|
|
coder sharing remove [flags] <workspace> --user <user> --group <group>
|
|
```
|
|
|
|
## Description
|
|
|
|
```console
|
|
This command fails if workspace sharing is disabled for the deployment, or if the organization's sharing policy doesn't allow sharing the workspace. See https://coder.com/docs/user-guides/shared-workspaces#policies for sharing policies.
|
|
```
|
|
|
|
## Options
|
|
|
|
### --user
|
|
|
|
| | |
|
|
|------|---------------------------|
|
|
| Type | <code>string-array</code> |
|
|
|
|
A comma separated list of users to remove from the workspace.
|
|
|
|
### --group
|
|
|
|
| | |
|
|
|------|---------------------------|
|
|
| Type | <code>string-array</code> |
|
|
|
|
A comma separated list of groups to remove from the workspace.
|