基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CynosuraPlatform/Cynosura.Studio --skill cyn命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | cyn |
| description | Command-line tool for creating, generating, listing, upgrading, and inspecting Cynosura solutions |
cyn)Cynosura.Studio includes a command-line tool (cyn) distributed as a .NET global tool. It allows you to create, generate, list, upgrade, and inspect Cynosura solutions directly from the terminal without running the web UI.
dotnet tool install -g Cynosura.Studio.CliTool
cyn <command> [command arguments] [options]
cyn new — Create a new solutionCreates a new Cynosura solution in the current (or specified) directory.
cyn new <name> --templateName <templateName>
<name> — name of the solution to create.--templateName — (optional) template to use. Defaults to Cynosura.Template.cyn list — List entities or enumsDisplays a table of entities or enums defined in the solution metadata.
cyn list entity # or: cyn list entities
cyn list enum # or: cyn list enums
cyn generate — Generate code from metadataGenerates code for an entity, an enum, or everything at once.
cyn generate entity <entityName>
cyn generate enum <enumName>
cyn generate all
generate all iterates over every non-abstract entity and every enum in the solution and generates code for each.cyn upgrade — Upgrade solution templateUpgrades the current solution to the latest version of its template. Template changes are merged without overwriting your custom modifications.
cyn upgrade
cyn update — Update generated code after metadata changesRegenerates code for an entity or enum based on the current git changes to its metadata JSON file. It reads the previous version from git history (HEAD) and the current version from disk, then runs the upgrade generators to merge changes into your code without overwriting custom modifications.
cyn update entity <entityName>
cyn update enum <enumName>
cyn info — Show solution and tool informationPrints solution name, template name, template version, CLI version, and CLI location.
cyn info
cyn help — Display helpcyn help # list all commands
cyn help <command> # show help for a specific command
These options can be appended to any command:
| Option | Description |
|---|---|
--solutionDirectory <path> | Set the solution directory (alias: --solution). Defaults to the current directory. |
--feed <url> | NuGet feed URL. Defaults to https://api.nuget.org/v3/index.json. |
--src <path> | Local feed source path for template development. |
--templateName <name> | Template package name. Defaults to Cynosura.Template. |
--log <level> | Set log level (Trace, Debug, Information, Warning, Error). |
--debug | Shorthand for --log Debug. |
-v | Verbosity: Warning level. |
-vv | Verbosity: Information level. |
-vvv | Verbosity: Debug level. |
-vvvv | Verbosity: Trace level. |
--set <expr> | Override configuration values. Format: key=value or key1=value1,key2=value2. Dot notation maps to config sections (e.g., Nuget.FeedUrl=https://...). |
The CLI reads additional settings from ~/.cynosura/appsettings.json (user profile directory). You can place NuGet feed credentials or other configuration there instead of passing them as command-line options every time.