Action Source Control
Perforce Workspace
Creates, deletes, updates, or retrieves information about Perforce workspaces (clients). Requires the 'p4' command-line tool.
Node IDP4WorkspaceAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Operation operation | enum | Yes | Create | The workspace operation to perform. |
P4 Workspace/Client Name p4_client | string | Yes | — | The name of the workspace to create, delete, update, or query. |
Workspace Root Path workspace_root | file_picker | No | — | The local file system path for the workspace root (required for Create/Update operations). |
Stream (Optional) stream | string | No | — | Stream path for stream-based workspaces (e.g., //stream/main). If provided, creates a stream workspace. |
View Mapping (Optional) view_mapping | textarea | No | — | Custom view mapping for classic workspaces. One mapping per line (e.g., '//depot/... //client/...'). Not used if Stream is specified. |
Description (Optional) description | string | No | — | Description for the workspace. |
P4 Server (Optional) p4_port | string | No | localhost:1666 | Perforce server address (e.g., ssl:server:1666). If not provided, uses P4PORT from environment or P4 config. |
P4 User (Optional) p4_user | string | No | — | Perforce username. If not provided, uses P4USER from environment or P4 config. |
P4 Password Vault Key (Optional) p4_password_key | string | No | P4PASSWD | Vault key for the Perforce password. Only needed if not already authenticated via P4TRUST. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An execution signal to trigger the workspace operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | workspace_result | Emits workspace information including name, root, stream, and operation status. |