docs: Add --run option examples to README

This commit is contained in:
2025-04-01 09:49:26 -06:00
committed by Mathieu Virbel
parent 33d90d0531
commit 6b2c1ebf1c

View File

@@ -41,6 +41,9 @@ mc
# Create a new session with the default driver
mc session create
# Create a session and run an initial command before the shell starts
mc session create --run "echo 'Setup complete'; ls -l"
# List all active sessions
mc session list
@@ -81,6 +84,9 @@ mcx https://github.com/username/repo # Clones the repository
# Shorthand with MCP servers
mcx https://github.com/username/repo --mcp github
# Shorthand with an initial command
mcx . --run "apt-get update && apt-get install -y my-package"
```
## Driver Management