← All procedures
cue.init
Initialize dependencies.json with a preset
MCPCLI- Package
- @procedures/cue · README
- Path
["cue","init"]- CLI
mark cue init- MCP tool
cue.init on the dev-tools server- As data
{"$proc":["cue","init"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/cue"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["cue","init"], {});
console.log(JSON.stringify(result));From the command line
$ mark cue init
As data, in a program
{ "$proc": ["cue", "init"], "input": {} }Input
| Field | Type | Required | Default | Description |
|---|
preset | string | no | "lib" | The preset: lib, react-lib or app |
force | boolean | no | false | Write dependencies.json again when it exists |
cwd | string | no | | The folder of the package (default: the current folder) |
Output
| Field | Type | Required | Default | Description |
|---|
success | boolean | yes | | True when dependencies.json exists after the call |
preset | string | yes | | The preset of the new dependencies.json |
created | string[] | yes | | The files that the call made |
message | string | no | | A message about the result |
error | string | no | | The reason of a failure (when success is false) |
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"preset": {
"default": "lib",
"description": "The preset: lib, react-lib or app",
"type": "string"
},
"force": {
"default": false,
"description": "Write dependencies.json again when it exists",
"type": "boolean"
},
"cwd": {
"description": "The folder of the package (default: the current folder)",
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "True when dependencies.json exists after the call"
},
"preset": {
"type": "string",
"description": "The preset of the new dependencies.json"
},
"created": {
"type": "array",
"items": {
"type": "string"
},
"description": "The files that the call made"
},
"message": {
"description": "A message about the result",
"type": "string"
},
"error": {
"description": "The reason of a failure (when success is false)",
"type": "string"
}
},
"required": [
"success",
"preset",
"created"
],
"additionalProperties": {}
}
}