← 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

FieldTypeRequiredDefaultDescription
presetstringno"lib"The preset: lib, react-lib or app
forcebooleannofalseWrite dependencies.json again when it exists
cwdstringnoThe folder of the package (default: the current folder)

Output

FieldTypeRequiredDefaultDescription
successbooleanyesTrue when dependencies.json exists after the call
presetstringyesThe preset of the new dependencies.json
createdstring[]yesThe files that the call made
messagestringnoA message about the result
errorstringnoThe 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": {}
  }
}