CLI Reference
Every dscc subcommand and global flag. Source of truth:
crates/dscc-cli/src/main.rs.
Subcommands
| Subcommand |
Purpose |
Args / flags |
File:line |
prompt <text> |
One-shot prompt |
--model, --output-format,
--allowed-tools, --permission-mode |
main.rs:318 |
login |
OAuth login; browser flow on port 4545 |
none |
main.rs:315 |
logout |
Clear OAuth credentials |
none |
main.rs:315 |
init |
Initialize repo with DSCC files |
none |
main.rs:317 |
agents [args] |
List configured agents |
filter args |
main.rs:308–309 |
skills [args] |
List available skills |
filter args |
main.rs:311–312 |
system-prompt |
Print composed system prompt (debug) |
--cwd PATH, --date YYYY-MM-DD |
main.rs:314, 462–488 |
dump-manifests |
Dump internal manifests (debug) |
none |
main.rs:306 |
bootstrap-plan |
Print bootstrap plan (debug) |
none |
main.rs:307 |
| (default, no subcmd) |
Interactive REPL |
model/tools/permission flags |
main.rs:291–296 |
--help / -h |
Help |
— |
main.rs:298–299 |
--resume <file.json> [/cmd...] |
Resume session and optionally dispatch / commands |
trailing args must start with / |
main.rs:301–302, 490–506 |
Global flags
| Flag |
Takes value |
Default |
Purpose |
File:line |
--model / --model=VALUE |
yes |
DSCC_MODEL env or error |
Model id |
main.rs:384–411 |
--api-key / --api-key=VALUE |
yes |
env |
Sets DSCC_API_KEY |
main.rs:195–205 |
--base-url / --base-url=VALUE |
yes |
provider default |
Sets DSCC_BASE_URL |
main.rs:207–216 |
--output-format [text|json] |
yes |
text |
Non-interactive only |
main.rs |
--permission-mode [read-only|workspace-write|danger-full-access] |
yes |
DSCC_PERMISSION_MODE or
danger-full-access |
Gate tools |
main.rs:428–452 |
--dangerously-skip-permissions |
no |
off |
Alias for --permission-mode danger-full-access |
main.rs:240–242 |
--allowedTools / --allowed-tools |
yes |
all |
Comma/space-separated allowlist |
main.rs:263–277 |
-p <text> |
yes |
— |
Non-interactive compat; remainder is the prompt |
main.rs:244–256 |
--print |
no |
— |
Non-interactive marker |
main.rs:258–261 |
-V / --version |
no |
— |
Print version and exit |
main.rs:180–182 |
Examples
# Interactive REPL with a specific model # [交互] opens the REPL; Ctrl-D to exit
dscc --model claude-opus-4-6
# One-shot prompt, JSON output, only the read tools
dscc prompt "summarize README" \
--output-format json \
--allowed-tools read_file,glob_search,grep_search
# Resume a saved session and run /status right after loading # [待验证]
dscc --resume ./session.json /status
# Print the exact composed system prompt for debugging
dscc system-prompt --cwd /tmp/repo --date 2026-04-16