You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+193-8Lines changed: 193 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,22 @@ cm marketplace search --gpu
251
251
cm marketplace install ml-pytorch
252
252
```
253
253
254
-
### 7. VS Code Integration (`cm code`)
254
+
### 7. Instant Sharing (`cm share`)
255
+
256
+
Generate "One-Click Onboarding" links for your team.
257
+
258
+
```bash
259
+
# Generate a universal clone command
260
+
cm share
261
+
262
+
# Markdown badge for your README
263
+
cm share --format markdown
264
+
```
265
+
266
+
Outputs a command like: `cm clone https://github.com/org/repo`. This single command will clone the repo, detect the configuration, and enter the development environment instantly.
267
+
268
+
### 8. VS Code Integration (`cm code`)
269
+
255
270
256
271
Open your project in VS Code with full DevContainer support.
257
272
@@ -263,22 +278,74 @@ cm code
263
278
- Launches VS Code with Remote-Containers
264
279
- Works with local and remote containers
265
280
281
+
### 8. Multi-Service Workspaces (`cm workspace`)
282
+
283
+
Orchestrate complex microservices architectures. `cm` manages the entire lifecycle, including dependency resolution, shared networks, and volume persistence.
284
+
285
+
**Commands:**
286
+
-`cm workspace init`: Initialize a new workspace or add services.
287
+
-`cm workspace graph`: Visualize the dependency tree (Topological Sort).
288
+
-`cm workspace services`: List all configured services.
-`cm restart <service>`: Hot-reload a specific service.
295
+
-`cm logs <service>`: Stream unified or service-specific logs.
296
+
-`cm ps`: View running processes across the workspace.
297
+
298
+
```yaml
299
+
# cm-workspace.yaml example
300
+
workspace:
301
+
name: my-app
302
+
network: bridge
303
+
services:
304
+
backend:
305
+
path: ./backend
306
+
exposed_ports: ["8080:8080"]
307
+
db:
308
+
image: postgres:15
309
+
environment:
310
+
POSTGRES_PASSWORD: secret
311
+
```
312
+
313
+
### 9. Brownfield Migration (`cm import`)
314
+
315
+
Migrate existing projects seamlessly. The import engine parses `docker-compose.yml`, performs compatibility analysis, and generates a native CM configuration.
0 commit comments