UiPath Documentation
uipath-cli
latest
false
UiPath-CLI-Benutzerhandbuch
Wichtig :
Dieser Inhalt wurde maschinell übersetzt. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

UIP Maestro Flow Init

Syntax und Optionen für „uip Maestro Flow Init“, das ein neues Flow-Projekt mit einem minimalen Manifest und einer Startdatei „.flow“ erstellt.

uip maestro flow init erstellt ein Gerüst für ein neues Flow-Projektverzeichnis mit einem minimalen Manifest und einer .flow -Startdatei, die einen einzelnen manuellen Triggerknoten enthält.

Zusammenfassung

uip maestro flow init <name> [--force] [--skip-solution-registration]
uip maestro flow init <name> [--force] [--skip-solution-registration]

Beachten Sie globale Optionen. Austrittscodes folgen dem Standardvertrag.

Argumente

  • <name> (erforderlich) – Name des Projektordners. Validiert gegen VALID_PROJECT_NAME_REGEX: Nur Buchstaben, Ziffern, Unterstriche (_) und Bindestriche (-).

Optionen

  • --force – Wird auch dann initialisiert, wenn das Zielverzeichnis vorhanden und nicht leer ist. Vorhandene Dateien werden nicht gelöscht – Dateien werden daneben geschrieben; Dies ist nützlich für die Neuinitialisierung innerhalb eines vorab erstellten Ordners.
  • --skip-solution-registration – Registrieren Sie dieses Projekt nicht automatisch in der Umgebungslösung (siehe Verhalten unten).

Verhalten

Der Befehl schreibt zwei Dateien in <name>/:

  • project.uiproj{ "Name": "<name>", "ProjectType": "Flow" }
  • <name>.flow – Seed Flow JSON, der Folgendes enthält:
    • Ein core.trigger.manual -Startknoten, der mit einem generierten entryPointIdverbunden ist
    • Die übereinstimmende Knotendefinition in definitions[]
    • Leer edges, bindings, variables
    • Position der Arbeitsfläche layout.nodes.start

Automatische Registrierung der Lösung. Es sei denn, --skip-solution-registration wird übergeben:

  • Wenn sich das aktuelle Verzeichnis bereits innerhalb einer Lösung befindet, wird <name>/ dort erstellt und als Projekt im .uipx -Manifest dieser Lösung registriert.
  • Wenn sich das aktuelle Verzeichnis nicht innerhalb einer Lösung befindet, wird automatisch eine übergeordnete Lösung mit dem Namen <name>Solution erstellt – das Flow-Projekt endet in <name>Solution/<name>/ und nicht in <name>/ im aktuellen Verzeichnis, wie eine wörtliche Lesung der Synopse vorschlagen kann .

Wenn <name> bereits vorhanden und nicht leer ist und --force nicht festgelegt ist, schlägt der Befehl mit einem Fehler fehl, der den Benutzer auffordert, --force zu übergeben.

Beispiele

# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow

# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force
# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow

# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force

Datenform (--output json)

{
  "Code": "FlowInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-flow-projectSolution/my-flow-project",
    "SolutionRegistration": {
      "Status": "Registered",
      "Message": "Project registered in parent solution.",
      "Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
      "Project": "my-flow-project/project.uiproj",
      "ProjectId": "00000000-0000-0000-0000-000000000000",
      "Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
    },
    "AutoCreatedSolution": {
      "Name": "my-flow-projectSolution",
      "Path": "/workspace/my-flow-projectSolution",
      "SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
    },
    "ProjectArtifacts": { "Created": true },
    "NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
  }
}
{
  "Code": "FlowInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-flow-projectSolution/my-flow-project",
    "SolutionRegistration": {
      "Status": "Registered",
      "Message": "Project registered in parent solution.",
      "Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
      "Project": "my-flow-project/project.uiproj",
      "ProjectId": "00000000-0000-0000-0000-000000000000",
      "Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
    },
    "AutoCreatedSolution": {
      "Name": "my-flow-projectSolution",
      "Path": "/workspace/my-flow-projectSolution",
      "SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
    },
    "ProjectArtifacts": { "Created": true },
    "NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
  }
}

AutoCreatedSolution ist nur vorhanden, wenn für eine übergeordnete Lösung automatisch ein Gerüst erstellt wurde (d. h. der Befehl wurde nicht innerhalb einer vorhandenen Lösung ausgeführt). SolutionRegistration fehlt vollständig, wenn --skip-solution-registration übergeben wird.

Bei einem Fehler fehlt Code und die Antwort enthält Result: "Failure", Message und Instructions.

Siehe auch

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben