@uipath/skills 1.207.0-preview.2172 → 1.207.0-preview.2182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/assets/uip-catalog-snapshot.json +1 -0
  2. package/package.json +1 -1
  3. package/skills/uipath-agents/references/lowcode/capabilities/escalation/escalation.md +4 -8
  4. package/skills/uipath-agents/references/lowcode/capabilities/process/solution-files.md +7 -9
  5. package/skills/uipath-automationhub/SKILL.md +9 -4
  6. package/skills/uipath-automationhub/references/api-endpoints.md +9 -4
  7. package/skills/uipath-automationhub/references/cli-commands.md +1 -1
  8. package/skills/uipath-automationhub/references/publish-process.md +1 -1
  9. package/skills/uipath-governance/references/access-policy/access-policy-commands.md +3 -10
  10. package/skills/uipath-governance/references/access-policy/access-policy-overview-guide.md +6 -6
  11. package/skills/uipath-governance/references/access-policy/planning-arch.md +6 -6
  12. package/skills/uipath-governance/references/access-policy/planning-impl.md +1 -1
  13. package/skills/uipath-governance/references/access-policy/plugins/tags/planning.md +1 -1
  14. package/skills/uipath-governance/references/access-policy/policy-manage-guide.md +7 -11
  15. package/skills/uipath-governance/references/access-policy/resource-lookup-guide.md +3 -7
  16. package/skills/uipath-governance/references/access-policy/sample-policy-guide.md +2 -2
  17. package/skills/uipath-governance/references/auth-context.md +17 -31
  18. package/skills/uipath-governance/references/cli-cheatsheet.md +3 -3
  19. package/skills/uipath-governance/references/compliance-pack/catalog/impl.md +1 -1
  20. package/skills/uipath-governance/references/compliance-pack/coverage/impl.md +2 -2
  21. package/skills/uipath-governance/references/compliance-pack/disable/impl.md +1 -1
  22. package/skills/uipath-governance/references/compliance-pack/full-apply/impl.md +4 -4
  23. package/skills/uipath-governance/references/compliance-pack/partial-apply/impl.md +1 -1
  24. package/skills/uipath-governance/references/compliance-pack/restore/impl.md +1 -1
  25. package/skills/uipath-human-in-the-loop/references/hitl-node-apptask.md +21 -19
  26. package/skills/uipath-platform/SKILL.md +43 -18
  27. package/skills/uipath-platform/references/licensing/licensing.md +1 -1
  28. package/skills/uipath-platform/references/orchestrator/orchestrator.md +7 -1
  29. package/skills/uipath-platform/references/uip-commands.md +4 -4
  30. package/version-manifest.json +1 -1
@@ -335,6 +335,7 @@
335
335
  "aops solution",
336
336
  "aops solution commits",
337
337
  "aops solution get",
338
+ "api",
338
339
  "api-workflow",
339
340
  "api-workflow bindings",
340
341
  "api-workflow bindings sync",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2172",
3
+ "version": "1.207.0-preview.2182",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -103,18 +103,14 @@ From the parsed `ActionSchema` (Step 3), construct the channel fields:
103
103
  ]
104
104
  ```
105
105
 
106
- Ask the user who should receive the task. If they say "me" or don't specify, fall back to the current user's email from the JWT `email` claim:
106
+ Ask the user who should receive the task. If they say "me" or don't specify, fall back to the current user's email, `Data.UserEmail` from:
107
107
 
108
108
  ```bash
109
- bash -c 'A="$HOME/.uipath/.auth"; [ -f "$A" ] || A="/.uipath/.auth"; set -a; source "$A"; set +a; echo "$UIPATH_ACCESS_TOKEN" | python3 -c "
110
- import sys, base64, json
111
- tok = sys.stdin.read().strip()
112
- payload = tok.split(\".\")[1]
113
- payload += \"=\" * (-len(payload) % 4)
114
- print(json.loads(base64.urlsafe_b64decode(payload)).get(\"email\"))
115
- "'
109
+ uip login status --output json
116
110
  ```
117
111
 
112
+ Never decode the access token or read the CLI's credentials file for it.
113
+
118
114
  Use other `type` values (1=UserId, 2=GroupId, 4=AssetUserEmail, 5=StaticGroupName, 6=AssetGroupName) only when the user explicitly asks for a GUID-based recipient or an asset-backed one — they require additional inputs (user/group GUID from the Identity API, or an asset name).
119
115
 
120
116
  > **Do not set `displayName` for `type: 3`.** The reference solution omits it; leaving it out results in cleaner rendering in Studio Web.
@@ -437,7 +437,7 @@ Maps `solution_folder` to the actual Orchestrator folder so Studio Web can resol
437
437
  "docVersion": "1.0.0",
438
438
  "tenants": [
439
439
  {
440
- "tenantKey": "<UIPATH_TENANT_ID>", // From ~/.uipath/.auth
440
+ "tenantKey": "<TENANT_ID>", // Data.TenantId from `uip login status --output json`
441
441
  "resources": [
442
442
  {
443
443
  "solutionResourceKey": "<release-key-guid>", // Same as referenceKey in agent resource
@@ -466,7 +466,7 @@ For the generic debug_overwrites shape (capability-agnostic), see [../../solutio
466
466
 
467
467
  > **Fallback path.** When `uip solution resources get` is available, use it instead — see [process.md § Discovery](process.md#discovery). The steps below are for older `uip` builds, RCS-unreachable environments, or custom deployments where the CLI cannot supply the full configuration.
468
468
 
469
- > **SECURITY: Never read `~/.uipath/.auth` directly** — the access token must not appear in Claude's context. Always use a `bash -c` wrapper that sources the auth file and makes the API call in a single shell invocation, so Claude only sees the API response.
469
+ > **SECURITY: Never read the CLI's credentials file or extract the access token** — it must not appear in Claude's context. Make the Orchestrator calls below with `uip api`, which adds base URL, organization, tenant and token itself and returns only the response (`Data.Body`). If `uip api` is an unknown command, run `uip update`, then retry.
470
470
 
471
471
  ### Step 1: Discover the process and its folder
472
472
 
@@ -486,12 +486,11 @@ Returns, for each match:
486
486
 
487
487
  ### Step 2: Query `/odata/Releases` for ProcessKey, ProcessVersion, FeedId, and raw .NET schemas (RPA)
488
488
 
489
- Use a shell wrapper to query the Releases API — this keeps the access token inside the shell. Filter by `ProcessKey` (string, exact match):
489
+ Query the Releases API with `uip api`. Filter by `ProcessKey` (string, exact match):
490
490
 
491
491
  ```bash
492
- bash -c 'A="$HOME/.uipath/.auth"; [ -f "$A" ] || A="/.uipath/.auth"; set -a; source "$A"; set +a; curl -s "${UIPATH_URL}/${UIPATH_ORGANIZATION_NAME}/${UIPATH_TENANT_NAME}/orchestrator_/odata/Releases?\$filter=ProcessKey%20eq%20'\''<PROCESS_KEY>'\''&\$top=1&\$select=Key,Name,ProcessKey,ProcessVersion,ProcessType,FeedId,TargetRuntime,Description,Arguments,Id" \
493
- -H "Authorization: Bearer $UIPATH_ACCESS_TOKEN" \
494
- -H "X-UIPATH-FolderKey: <FOLDER_KEY_GUID>"'
492
+ uip api "orchestrator_/odata/Releases?\$filter=ProcessKey%20eq%20'<PROCESS_KEY>'&\$top=1&\$select=Key,Name,ProcessKey,ProcessVersion,ProcessType,FeedId,TargetRuntime,Description,Arguments,Id" \
493
+ --folder-key "<FOLDER_KEY_GUID>" --output json
495
494
  ```
496
495
 
497
496
  Orchestrator's OData rejects `Key eq <guid>` (Edm.Guid mismatch); filter by `ProcessKey` (string) or `Name` instead. The `Key` GUID from Step 1 is used as `referenceKey` and process-declaration `key`, never as a filter value.
@@ -507,9 +506,8 @@ Returns:
507
506
  This API returns JSON Schema format input/output arguments and entry point metadata. It works for **all 4 process types**.
508
507
 
509
508
  ```bash
510
- bash -c 'A="$HOME/.uipath/.auth"; [ -f "$A" ] || A="/.uipath/.auth"; set -a; source "$A"; set +a; curl -s "${UIPATH_URL}/${UIPATH_ORGANIZATION_NAME}/${UIPATH_TENANT_NAME}/orchestrator_/odata/Processes/UiPath.Server.Configuration.OData.GetPackageEntryPointsV2(key='\''<PROCESS_KEY>:<VERSION>'\'')?feedId=<FEED_ID>" \
511
- -H "Authorization: Bearer $UIPATH_ACCESS_TOKEN" \
512
- -H "X-UIPATH-FolderKey: <FOLDER_KEY_GUID>"'
509
+ uip api "orchestrator_/odata/Processes/UiPath.Server.Configuration.OData.GetPackageEntryPointsV2(key='<PROCESS_KEY>:<VERSION>')?feedId=<FEED_ID>" \
510
+ --folder-key "<FOLDER_KEY_GUID>" --output json
513
511
  ```
514
512
 
515
513
  - `<PROCESS_KEY>:<VERSION>` — e.g., `TestRPA.process.TestRPA:1.0.0` (from Step 2: `ProcessKey` + `ProcessVersion`)
@@ -25,10 +25,15 @@ Never mix the two transports in one run. The domain contract — required fields
25
25
  Resolve the cloud token + base URL + org + tenant in this **priority order**:
26
26
 
27
27
  1. **Runtime env-auth (preferred — how UiPath Delegate provides it).** If `UIPATH_CLI_AUTH_TOKEN` is set (with `UIPATH_CLI_ENABLE_ENV_AUTH=true`), use it as the bearer and take org/tenant from `UIPATH_CLI_ORGANIZATION_NAME` / `UIPATH_CLI_TENANT_NAME` (and the `..._ID` variants). Base URL defaults to `https://cloud.uipath.com`. *(If a parent `uip` process instead exported `UIPATH_ACCESS_TOKEN` + `UIPATH_URL` — the `{base}/{org}/{tenant}` shape — use those.)*
28
- 2. **Logged-in `uip` session.** Otherwise, if the user has run `uip login`, read `~/.uipath/.auth` (JSON: `accessToken`, `baseUrl`, `organizationName`, `tenantName`).
29
- 3. **User-provided (last resort).** Ask the user to paste a cloud bearer token plus their **org** and **tenant** slugs (the two path segments after the host in their AH URL).
28
+ 2. **Logged-in `uip` session.** Otherwise take `$BASE_URL`, `$ORG`, `$TENANT` from `uip login status --output json` (`Data.BaseUrl`, `Data.Organization`, `Data.Tenant`; `Data.Status` must be `Logged in`) and the token from `uip login refresh --output json` (`Data.AccessToken`). Never read the CLI's credentials file.
30
29
 
31
- Use whatever you resolved as `$ACCESS_TOKEN`, `$BASE_URL`, `$ORG`, `$TENANT` in the flows.
30
+ Set `$ACCESS_TOKEN` in the **same shell invocation** as each request, and never print it:
31
+
32
+ ```bash
33
+ ACCESS_TOKEN=${UIPATH_CLI_AUTH_TOKEN:-$(uip login refresh --output json | sed -n 's/.*"AccessToken": *"\([^"]*\)".*/\1/p')}
34
+ ```
35
+
36
+ Never run `uip login refresh --output json` on its own: its output includes the token. If neither source yields a token, stop and ask the user to run `uip login`. Never ask the user to paste a token.
32
37
 
33
38
  **Gateway URL** (every request):
34
39
 
@@ -43,7 +48,7 @@ The platform injects tenant-routing headers from the `{org}/{tenant}` segments
43
48
  - Send `Authorization: Bearer <cloud access token>` on every request (and `Content-Type: application/json` on POSTs).
44
49
  - **NEVER** send `x-ah-openapi-auth` or `x-ah-openapi-app-key`. Those route to the admin-token path and reject a cloud token with **401** — never add them to "fix" a 401.
45
50
  - Never fall back to an admin OpenAPI token. If no token resolves, stop and explain the skill needs the user's cloud session (`uip login`) or a host-provided token.
46
- - Cloud tokens are short-lived. On a **401**, if the token came from `~/.uipath/.auth`, tell the user to run `uip login` again, re-resolve, and retry.
51
+ - Cloud tokens are short-lived. On a **401** with a `uip login` session, re-run the request (its `uip login refresh` renews the token); if it still fails, tell the user to run `uip login` again.
47
52
 
48
53
  ## Routing — pick the flow by intent
49
54
 
@@ -9,10 +9,15 @@ This is the shared auth + endpoint catalog for both flows — [`publish-process.
9
9
  ### Getting the cloud token + org/tenant (in priority order)
10
10
 
11
11
  1. **Runtime env-auth (preferred — this is how UiPath Delegate provides it).** The runtime runs `uip` in a virtual shell with `UIPATH_CLI_ENABLE_ENV_AUTH=true` and sets `UIPATH_CLI_AUTH_TOKEN` (the user's cloud bearer token) plus `UIPATH_CLI_ORGANIZATION_NAME` / `UIPATH_CLI_TENANT_NAME` (and `..._ID` variants). If `UIPATH_CLI_AUTH_TOKEN` is set, use it as the bearer and take org/tenant from those vars. Base URL defaults to `https://cloud.uipath.com` unless the environment specifies another. *(If a parent `uip` process instead exported `UIPATH_ACCESS_TOKEN` + `UIPATH_URL` — the `{base}/{org}/{tenant}` shape — use those.)*
12
- 2. **Logged-in `uip` session.** Otherwise, if the user has run `uip login`, read `~/.uipath/.auth` (JSON). Use its `accessToken`, `baseUrl`, `organizationName`, `tenantName`. If the file is missing or has no `accessToken`, tell the user to run `uip login` (and `uip login tenant set <name>` to pick the tenant).
13
- 3. **User-provided (last resort).** Ask the user to paste a cloud bearer token plus their **org** and **tenant** slugs (the two path segments after the host in their AH URL).
12
+ 2. **Logged-in `uip` session.** Otherwise run `uip login status --output json` and use `Data.BaseUrl`, `Data.Organization`, `Data.Tenant`. When `Data.Status` is not `Logged in`, tell the user to run `uip login` (and `uip login tenant set <name>` to pick the tenant). Take the token from `uip login refresh --output json` (`Data.AccessToken`). Never read the CLI's credentials file.
14
13
 
15
- Never fall back to an admin OpenAPI token. If none of the above yields a token, stop and explain that the skill needs the user's cloud session (`uip login`) or a host-provided token.
14
+ Set `$ACCESS_TOKEN` in the same shell invocation as each request, and never print it:
15
+
16
+ ```bash
17
+ ACCESS_TOKEN=${UIPATH_CLI_AUTH_TOKEN:-$(uip login refresh --output json | sed -n 's/.*"AccessToken": *"\([^"]*\)".*/\1/p')}
18
+ ```
19
+
20
+ Never run `uip login refresh --output json` on its own: its output includes the token. Never ask the user to paste a token, and never fall back to an admin OpenAPI token. If neither source yields a token, stop and explain that the skill needs the user's cloud session (`uip login`) or a host-provided token.
16
21
 
17
22
  ### Base URL
18
23
 
@@ -33,7 +38,7 @@ e.g. `https://cloud.uipath.com/acme/prod/automationhub_/api/v1/openapi`. Always
33
38
 
34
39
  ### Token expiry
35
40
 
36
- Cloud access tokens are short-lived. If any call returns **401** and the token came from `~/.uipath/.auth`, tell the user to run `uip login` again (or re-provide a token) and retry.
41
+ Cloud access tokens are short-lived. If any call returns **401** with a `uip login` session, re-run it (its `uip login refresh` renews the token); if it still fails, tell the user to run `uip login` again and retry.
37
42
 
38
43
  ## Endpoints used by this skill
39
44
 
@@ -8,7 +8,7 @@ The CLI wraps the same Open API endpoints as [`api-endpoints.md`](api-endpoints.
8
8
 
9
9
  `uip` resolves credentials itself, in this order:
10
10
  1. **Delegate runtime env-auth**: the Delegate injects `UIPATH_CLI_AUTH_TOKEN` + org/tenant vars; `uip` consumes them natively. No setup.
11
- 2. **`uip login` session** (`~/.uipath/.auth`).
11
+ 2. **`uip login` session** (check it with `uip login status --output json`).
12
12
 
13
13
  If a command fails with an authentication error, tell the user to run `uip login` — never ask for or handle a raw token yourself.
14
14
 
@@ -17,7 +17,7 @@ curl -s -w "\n%{http_code} %{redirect_url}" \
17
17
  The last line is `<status> <redirect target>` — the target is empty unless the response was a 3xx. Read both: a 3xx alone is ambiguous, a 3xx **to `portal_/unregistered`** is the tenant-not-enabled signal below. Never add `-L`.
18
18
 
19
19
  - **200** → save the `data` array (reused in Step 2) and tell the user "Connected to Automation Hub."
20
- - **401** → token missing/expired: if it came from `~/.uipath/.auth`, ask the user to run `uip login` again; re-resolve and retry. **Never** add `x-ah-openapi-auth` to "fix" a 401 — that routes to the admin-token path and guarantees failure.
20
+ - **401** → token missing/expired: with a `uip login` session, re-run the request (its `uip login refresh` renews the token); if it still fails, ask the user to run `uip login` again. **Never** add `x-ah-openapi-auth` to "fix" a 401 — that routes to the admin-token path and guarantees failure.
21
21
  - **403** → the user is authenticated but lacks AH access on this tenant.
22
22
  - **404 / 3xx to `portal_/unregistered` / 422 tenant lookup** → AH is not available on this tenant. Confirm the org/tenant first; if they're right, report the message for the matching case, verbatim, from [`api-endpoints.md`](api-endpoints.md) → **Automation Hub not available on this tenant** — then **stop**.
23
23
 
@@ -43,20 +43,13 @@ For `evaluate`, login must target a specific tenant (not just an organization).
43
43
 
44
44
  ### Reading `organizationId` and `tenantId`
45
45
 
46
- The org and tenant UUIDs required in every `PolicyDefinition` live in `~/.uipath/.auth`:
46
+ The org and tenant UUIDs required in every `PolicyDefinition` come from the login session:
47
47
 
48
48
  ```bash
49
- grep -E "UIPATH_ORGANIZATION_ID|UIPATH_TENANT_ID" ~/.uipath/.auth
50
- ```
51
-
52
- Expected output:
53
-
54
- ```
55
- UIPATH_ORGANIZATION_ID=<ORG_UUID>
56
- UIPATH_TENANT_ID=<TENANT_UUID>
49
+ uip login status --output json
57
50
  ```
58
51
 
59
- Copy these into `organizationId` and `tenantId` when composing a policy (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode.
52
+ Read `Data.OrganizationId` (`<ORG_UUID>`) and `Data.TenantId` (`<TENANT_UUID>`). Never read the CLI's credentials file. Copy these into `organizationId` and `tenantId` when composing a policy (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode.
60
53
 
61
54
  ---
62
55
 
@@ -62,13 +62,13 @@ Map intent phrases to the three policy blocks. These priors feed directly into P
62
62
  2. **`policyType` is always `"ToolUsePolicy"`; `enforcement` is always `"Allow"`. Never emit `"Deny"`.**
63
63
  - **Why:** the API rejects `enforcement: "Deny"`; Deny is the runtime default when no Allow policy matches, so blocking is expressed as the complement of an Allow set.
64
64
  - **Applies to:** every create / update payload. When the user expresses Deny intent, silently translate to an Allow shape and never surface the mechanic (no "Deny→Allow flip" jargon, no `(flipped)` badge, no "enforcement: Deny is not authorable" caveat). See [plugins/tags/planning.md — Deny-to-Allow flip](./plugins/tags/planning.md#deny-to-allow-flip) for the decision logic.
65
- 3. Read `organizationId` and `tenantId` from `~/.uipath/.auth` (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode tenant or organization UUIDs.
65
+ 3. Read `organizationId` and `tenantId` from `uip login status --output json` (`Data.OrganizationId`, `Data.TenantId`) (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode tenant or organization UUIDs.
66
66
  4. **Three rule blocks; `actorRule` is optional.** A `ToolUsePolicy` access policy is composed of **Selection Rule** (`selectors[]`), **Actor Process Rule** (`executableRule`), and **Actor Identity Rule** (`actorRule`). The first two are mandatory; `actorRule` is emitted only when the user expressed actor-shaped intent — its absence means "any identity passes".
67
67
  5. **`values` is required on every entry; `tags` only on `selectors[]` / `executableRule`.**
68
68
  - **Why:** missing `values` returns `400 Bad Request`; `actorRule` does not accept a `tags` block today (the API rejects `actorRule.tags`).
69
69
  - **Applies to:** every entry under `selectors[]`, `executableRule.values[]`, and `actorRule.values[]` — use `["*"]` for "all of this type" even when `tags` narrow the scope. Never emit `actorRule.tags`.
70
70
  6. **Two-phase authoring is mandatory.** Never construct policy JSON from scratch. Author and approve a **Policy Spec** (natural-language narrative + Spec Components Table) via [planning-arch.md](./planning-arch.md) (Phase 1), then compose the concrete JSON via [planning-impl.md](./planning-impl.md) (Phase 2), which walks the approved Spec and delegates to each plugin's `impl.md` for block-level JSON.
71
- 7. **Single confirmation gate per mutation.** Exactly one `yes / no` review precedes each `create`, `update`, or `delete` call. The gate must show: (a) the **Scope** — the organization name / tenant name plus their UUIDs, read from `~/.uipath/.auth` — so the user sees which environment is about to be mutated; (b) the complete policy JSON in chat; (c) clickable markdown links to **both** the Spec file (`/tmp/access-policy-<slug>.spec.md`, written by Phase 1) and the JSON working file (`/tmp/access-policy-<slug>.json`, written by Phase 2) using their **resolved absolute paths** (run `realpath` — never a relative path, a `<WORKING_FILE>` placeholder, or a `~/` path). For update flows the Spec file does not exist (Critical Rule #8) — show the Scope, the diff, and the JSON working file only. See [Confirmation-gate wording](#confirmation-gate-wording).
71
+ 7. **Single confirmation gate per mutation.** Exactly one `yes / no` review precedes each `create`, `update`, or `delete` call. The gate must show: (a) the **Scope** — the organization name / tenant name plus their UUIDs, read from `uip login status --output json` — so the user sees which environment is about to be mutated; (b) the complete policy JSON in chat; (c) clickable markdown links to **both** the Spec file (`/tmp/access-policy-<slug>.spec.md`, written by Phase 1) and the JSON working file (`/tmp/access-policy-<slug>.json`, written by Phase 2) using their **resolved absolute paths** (run `realpath` — never a relative path, a `<WORKING_FILE>` placeholder, or a `~/` path). For update flows the Spec file does not exist (Critical Rule #8) — show the Scope, the diff, and the JSON working file only. See [Confirmation-gate wording](#confirmation-gate-wording).
72
72
  8. **For `update`: always `get` first and start from `Data` verbatim. Update is a full replacement.**
73
73
  - **Why:** any field you omit from the file is cleared on the server (including the whole `actorRule` block); a fresh Phase 1 Spec would silently wipe fields the user did not re-specify.
74
74
  - **Applies to:** every update flow. Use the returned `Data` object verbatim as the starting state, then strip audit fields (`isBuiltIn`, `isTemplate`, `createdBy`, `createdOn`, `modifiedBy`, `modifiedOn`, `deletedBy`, `deletedOn`).
@@ -123,7 +123,7 @@ The user reviews the pre-filled Spec and changes any row they want; the agent re
123
123
 
124
124
  ### Step 3 — Phase 2: compose the JSON via plugins
125
125
 
126
- Hand off to [planning-impl.md](./planning-impl.md). It reads `organizationId` and `tenantId` from `~/.uipath/.auth`, then walks each row of the approved **Spec Components Table** and reads the matching plugin's `impl.md`:
126
+ Hand off to [planning-impl.md](./planning-impl.md). It reads `organizationId` and `tenantId` from `uip login status --output json`, then walks each row of the approved **Spec Components Table** and reads the matching plugin's `impl.md`:
127
127
 
128
128
  - Each Resource entry (Spec rows 5–7 — type, scope, optional tag filter) → one `selectors[]` entry via [plugins/selector/impl.md](./plugins/selector/impl.md)
129
129
  - Each Actor Process entry (Spec rows 8–10 — type, scope, optional tag filter) → one `executableRule.values[]` entry via [plugins/executable/impl.md](./plugins/executable/impl.md)
@@ -135,14 +135,14 @@ Phase 2 reuses the slug Phase 1 used for the Spec file and writes the assembled
135
135
  ### Step 4 — Single review gate
136
136
 
137
137
  Show a **short human-readable summary** that includes:
138
- - A **Scope** line on top — `Organization "<NAME>" / Tenant "<NAME>"` plus the matching `organizationId` / `tenantId` UUIDs read from `~/.uipath/.auth` — so the user always sees which environment they are about to mutate before approving.
138
+ - A **Scope** line on top — `Organization "<NAME>" / Tenant "<NAME>"` plus the matching `organizationId` / `tenantId` UUIDs read from `uip login status --output json` — so the user always sees which environment they are about to mutate before approving.
139
139
  - One plain-English line per block — `Resources`, `Actor Process`, `Actor Identity` — with the per-entry technical breakdown tucked inside a collapsible `<details>` section.
140
140
 
141
141
  Then output the complete JSON as a ```json code block in the chat (do not rely on the file links alone — the user may not be able to open them), plus clickable markdown links to **both** files using their **resolved absolute paths** (Critical Rule #7):
142
142
  - `/tmp/access-policy-<slug>.spec.md` — the human-readable Policy Spec from Phase 1
143
143
  - `/tmp/access-policy-<slug>.json` — the JSON payload Phase 2 will submit
144
144
 
145
- See [policy-manage-guide.md — Create Step 4](./policy-manage-guide.md#step-4--single-review-gate) for the exact layout, the `~/.uipath/.auth` source-mapping for the Scope line, and the phrasing rules. Use the canonical wording from [Confirmation-gate wording](#confirmation-gate-wording) below. This is the only confirmation gate in the create flow.
145
+ See [policy-manage-guide.md — Create Step 4](./policy-manage-guide.md#step-4--single-review-gate) for the exact layout, the `uip login status` source-mapping for the Scope line, and the phrasing rules. Use the canonical wording from [Confirmation-gate wording](#confirmation-gate-wording) below. This is the only confirmation gate in the create flow.
146
146
 
147
147
  ### Step 5 — Create
148
148
 
@@ -336,7 +336,7 @@ Do not run any of these actions automatically. Wait for the user's selection.
336
336
  - **[resource-lookup-guide.md](./resource-lookup-guide.md)** — `uip or processes list` / `uip or folders list` for resource lookups; `uip admin users list --search` / `uip admin groups list` / `uip admin robot-accounts list --search` for identity lookups. Use these to resolve human-readable names to the UUIDs required by `selectors[].values`, `executableRule.values[].values`, and `actorRule.values[].values`. Route here whenever the user names a process, folder, user, group, or robot without supplying a UUID.
337
337
  - **[planning-arch.md](./planning-arch.md)** — Phase 1: author a **Policy Spec** (narrative paragraph + Spec Components Table covering name, description, status, enforcement, resource selection, actor process, actor identity, tags, operators). The agent pre-fills every row; the user reviews and edits before approving, and approval is required before any JSON is composed.
338
338
  - **[sample-policy-guide.md](./sample-policy-guide.md)** — canonical Spec narrative + JSON (Production Agent + one Maestro + one User, Allow, Simulated). Phase 1 routes here when the user has no concrete intent or has gaps; surfaces a 3-option picker so the user can adopt, adapt, or replace the sample.
339
- - **[planning-impl.md](./planning-impl.md)** — Phase 2: walk the approved Spec Components Table and assemble the concrete `PolicyDefinition` JSON by reading `~/.uipath/.auth` for identity and each plugin's `impl.md` for block-level JSON.
339
+ - **[planning-impl.md](./planning-impl.md)** — Phase 2: walk the approved Spec Components Table and assemble the concrete `PolicyDefinition` JSON by reading `uip login status --output json` for identity and each plugin's `impl.md` for block-level JSON.
340
340
  - **[policy-manage-guide.md](./policy-manage-guide.md)** — Full CRUD lifecycle (list / get / create / update / delete). Owns the single final-review gate before every mutation.
341
341
  - **[plugins/selector/](./plugins/selector/)** — `selectors[]` (Selection Rule): resource/tool types (`Agent`, `AgenticProcess`, `RPAWorkflow`, `APIWorkflow`, `CaseManagement`, `Flow`), targeting modes, tag filters.
342
342
  - **[plugins/executable/](./plugins/executable/)** — `executableRule` (Actor Process Rule): executable types (`Agent`, `AgenticProcess`, `CaseManagement`, `Flow`), targeting modes, shared tag filter.
@@ -24,7 +24,7 @@ Both parts are kept in sync: every change to the table updates the narrative, an
24
24
  1. **Read the user's request.** Extract resource phrases, actor process phrases, tag phrases, and actor-identity phrases (user, robot user, or group — Critical Rule #16). Use the [Intent analysis](#intent-analysis) heuristics below.
25
25
  2. **If the user has no concrete intent or named ≤ 1 of the four phrase categories** (Resource / Actor Process / Actor Identity / Tag), route through [Sample-policy starter (when intent is missing or sparse)](#sample-policy-starter-when-intent-is-missing-or-sparse) BEFORE generating the Spec — show the canonical sample, let the user pick a path, and seed the Spec from the user's choice.
26
26
  3. **Generate the initial Spec — fully pre-filled.** Build the narrative paragraph and Spec Components Table with **a concrete value in every row** (don't leave rows empty for the user to fill in). For values the user explicitly supplied, use those. For values they didn't, apply sensible defaults (Critical Rule #11 — don't ask, just do):
27
- - **Scope rows (Org / Tenant — read-only):** capture both rows from the active auth context BEFORE generating the rest of the Spec. Read **names** via `uip login status --output json` (`Data.Organization`, `Data.Tenant`) and **UUIDs** from `~/.uipath/.auth` (`organizationId`, `tenantId`). Render each row as `<NAME> (UUID <UUID>)`. Mark these rows as read-only — the user changes them by re-running `uip login` (Critical Rule #1), not by editing the Spec. They appear above the numbered rows so the user always sees which environment the policy will be authored against.
27
+ - **Scope rows (Org / Tenant — read-only):** capture both rows from the active auth context BEFORE generating the rest of the Spec. Read names and UUIDs via `uip login status --output json` (`Data.Organization`, `Data.Tenant`, `Data.OrganizationId`, `Data.TenantId`). Render each row as `<NAME> (UUID <UUID>)`. Mark these rows as read-only — the user changes them by re-running `uip login` (Critical Rule #1), not by editing the Spec. They appear above the numbered rows so the user always sees which environment the policy will be authored against.
28
28
  - **Row 1 (Name):** ALWAYS suggest a name derived from intent — never `(missing)`. Pattern: `"Allow <ResourceSummary> in <ActorProcessSummary>"` (e.g. `"Allow Production Agents in Maestro"`). Use user-facing names (`Maestro` for `AgenticProcess` — Critical Rule #14).
29
29
  - **Row 2 (Description):** auto-derive from the narrative paragraph.
30
30
  - **Row 3 (Status):** `Simulated` (Critical Rule #13).
@@ -157,8 +157,8 @@ Present the Spec as **structured narrative + Spec Components Table** every time.
157
157
 
158
158
  | # | Component | Allowed values | Current value | Required? |
159
159
  |---|-----------|---------------|--------------|-----------|
160
- | — | Organization (read-only) | sourced from `uip login status` + `~/.uipath/.auth` — change via `uip login` | <ORG_NAME> (UUID `<ORG_ID>`) | Scope (read-only) |
161
- | — | Tenant (read-only) | sourced from `uip login status` + `~/.uipath/.auth` — change via `uip login` | <TENANT_NAME> (UUID `<TENANT_ID>`) | Scope (read-only) |
160
+ | — | Organization (read-only) | sourced from `uip login status` — change via `uip login` | <ORG_NAME> (UUID `<ORG_ID>`) | Scope (read-only) |
161
+ | — | Tenant (read-only) | sourced from `uip login status` — change via `uip login` | <TENANT_NAME> (UUID `<TENANT_ID>`) | Scope (read-only) |
162
162
  | 1 | Policy name | string — always pre-filled | <suggested name> | Required |
163
163
  | 2 | Description | one sentence — auto-derived from the narrative above | <description> | Required |
164
164
  | 3 | Status | `Simulated` (default) / `Active` | `Simulated` | Required |
@@ -187,8 +187,8 @@ Every row gets a concrete value in the initial Spec (Critical Rule #11 — don't
187
187
 
188
188
  | Row | Required? | Default when not specified |
189
189
  |---|---|---|
190
- | — Organization (read-only) | Scope | Name from `uip login status` (`Data.Organization`); UUID from `~/.uipath/.auth` (`organizationId`). Not user-editable in the Spec. |
191
- | — Tenant (read-only) | Scope | Name from `uip login status` (`Data.Tenant`); UUID from `~/.uipath/.auth` (`tenantId`). Not user-editable in the Spec. |
190
+ | — Organization (read-only) | Scope | Name from `uip login status` (`Data.Organization`); UUID from `Data.OrganizationId`. Not user-editable in the Spec. |
191
+ | — Tenant (read-only) | Scope | Name from `uip login status` (`Data.Tenant`); UUID from `Data.TenantId`. Not user-editable in the Spec. |
192
192
  | 1 — Policy name | Required | Suggested from intent: `"Allow <ResourceSummary> in <ActorProcessSummary>"` |
193
193
  | 2 — Description | Required | Auto-derived from the narrative |
194
194
  | 3 — Status | Required | `Simulated` (Critical Rule #13) |
@@ -224,7 +224,7 @@ Spec row 2 (`Description`) is the **one-sentence summary** that the policy carri
224
224
 
225
225
  ### Spec rules
226
226
 
227
- - **Org / Tenant rows are read-only scope.** The two un-numbered rows at the top of the table show the active auth context — `<NAME> (UUID <UUID>)` for both Organization and Tenant. They are sourced from `uip login status --output json` (names) and `~/.uipath/.auth` (UUIDs) and are NOT user-editable in the Spec; if the user wants to author against a different org or tenant, route them to re-run `uip login` (Critical Rule #1) and regenerate the Spec. The same Scope is shown again at the Phase 2 review gate (Critical Rule #7).
227
+ - **Org / Tenant rows are read-only scope.** The two un-numbered rows at the top of the table show the active auth context — `<NAME> (UUID <UUID>)` for both Organization and Tenant. They are sourced from `uip login status --output json` (names and UUIDs) and are NOT user-editable in the Spec; if the user wants to author against a different org or tenant, route them to re-run `uip login` (Critical Rule #1) and regenerate the Spec. The same Scope is shown again at the Phase 2 review gate (Critical Rule #7).
228
228
  - **Narrative and table are kept in sync.** When the user changes a row, re-derive the narrative; when the user changes the narrative ("make it match this description"), re-derive the table by re-running [Intent analysis](#intent-analysis) on the new narrative. Both must reflect the same policy.
229
229
  - **Terminology (user-facing — Critical Rule #14):** say "Resource", "Actor Process", "Actor Identity", "tag filter", "Allow", "Simulated / Active" in the Spec. Never use the JSON field names (`selectors`, `executableRule`, `actorRule`, `operator: Or/And/None`) in the Spec. JSON terms appear only in Phase 2.
230
230
  - **Multi-type rows.** If the user names two resource types ("Agents and Flows"), each type gets its own row group — duplicate rows 5/6/7 once per type and label them `5a / 6a / 7a` for the first type, `5b / 6b / 7b` for the second, etc. Do the same for Actor Process rows (8/9/10) when multiple Actor Process types are named. The Spec table grows row-wise; it never collapses two types into one row.
@@ -8,7 +8,7 @@ Compose the concrete `PolicyDefinition` JSON from an **approved Phase 1 Spec** (
8
8
 
9
9
  ## Step 1 — Gather identity
10
10
 
11
- Every `PolicyDefinition` requires `organizationId` and `tenantId` at the top level. Read them from `~/.uipath/.auth` — see [access-policy-commands.md — Reading `organizationId` and `tenantId`](./access-policy-commands.md#reading-organizationid-and-tenantid) for the exact command. Use the two UUIDs verbatim in the assembled JSON; never hardcode (Critical Rule #3).
11
+ Every `PolicyDefinition` requires `organizationId` and `tenantId` at the top level. Read them from `uip login status --output json` — see [access-policy-commands.md — Reading `organizationId` and `tenantId`](./access-policy-commands.md#reading-organizationid-and-tenantid) for the exact command. Use the two UUIDs verbatim in the assembled JSON; never hardcode (Critical Rule #3).
12
12
 
13
13
  If the file is missing or the IDs are not present, the user is not logged in — stop and route them to [access-policy-commands.md — Authentication](./access-policy-commands.md#authentication).
14
14
 
@@ -42,7 +42,7 @@ The Resource Catalog tag set is tenant-specific, but these names recur across Ui
42
42
  - **Team / org:** `Finance`, `Marketing`, `HR`, `Platform`
43
43
  - **Product / domain:** user-specific product names
44
44
 
45
- > Tags the user mentions must actually exist in the Resource Catalog of the **policy's own tenant** (the tenant in `~/.uipath/.auth`). A policy that references `DoesNotExist` silently matches nothing. **Confirm tag names during Phase 1** before approving the Spec by running `uip admin rcs tag list --output json` (no `--tenant` — the default targets the policy's tenant; see [resource-lookup-guide.md § 4](../../resource-lookup-guide.md#4-resource-catalog-tags)). If the tag is missing, surface it as an Open question and ask the user to either pick a returned tag or add the missing one to the Resource Catalog before the JSON is composed.
45
+ > Tags the user mentions must actually exist in the Resource Catalog of the **policy's own tenant** (`Data.TenantId` in `uip login status --output json`). A policy that references `DoesNotExist` silently matches nothing. **Confirm tag names during Phase 1** before approving the Spec by running `uip admin rcs tag list --output json` (no `--tenant` — the default targets the policy's tenant; see [resource-lookup-guide.md § 4](../../resource-lookup-guide.md#4-resource-catalog-tags)). If the tag is missing, surface it as an Open question and ask the user to either pick a returned tag or add the missing one to the Resource Catalog before the JSON is composed.
46
46
 
47
47
  ## Deny-to-Allow flip
48
48
 
@@ -125,18 +125,14 @@ Review the access policy to be created:
125
125
  </details>
126
126
  ```
127
127
 
128
- **Scope line — what to fill in.** The Scope line tells the user which organization + tenant the policy will be created in. Read all four values from `~/.uipath/.auth`:
128
+ **Scope line — what to fill in.** The Scope line tells the user which organization + tenant the policy will be created in. Read all four values from `uip login status --output json`:
129
129
 
130
- ```bash
131
- grep -E "UIPATH_ORGANIZATION_NAME|UIPATH_TENANT_NAME|UIPATH_ORGANIZATION_ID|UIPATH_TENANT_ID" ~/.uipath/.auth
132
- ```
133
-
134
- - `UIPATH_ORGANIZATION_NAME` → `<ORG_NAME>`
135
- - `UIPATH_TENANT_NAME` → `<TENANT_NAME>`
136
- - `UIPATH_ORGANIZATION_ID` → `<ORG_UUID>` (matches `organizationId` in the JSON payload)
137
- - `UIPATH_TENANT_ID` → `<TENANT_UUID>` (matches `tenantId` in the JSON payload)
130
+ - `Data.Organization` → `<ORG_NAME>`
131
+ - `Data.Tenant` → `<TENANT_NAME>`
132
+ - `Data.OrganizationId` → `<ORG_UUID>` (matches `organizationId` in the JSON payload)
133
+ - `Data.TenantId` → `<TENANT_UUID>` (matches `tenantId` in the JSON payload)
138
134
 
139
- If the org / tenant names are missing from `~/.uipath/.auth`, show only the UUIDs on the second line and note "(name unavailable)". Do **not** skip the Scope line — the user must always see which environment is about to be mutated. If the user expected a different org / tenant, they should `cancel` and re-login (`uip login --authority …` or `uip login --tenant …`).
135
+ If the org / tenant names are missing (the field repeats the UUID or reads `N/A`), show only the UUIDs on the second line and note "(name unavailable)". Do **not** skip the Scope line — the user must always see which environment is about to be mutated. If the user expected a different org / tenant, they should `cancel` and re-login (`uip login --authority …` or `uip login --tenant …`).
140
136
 
141
137
  Then output the full JSON as a ```json code block in the chat (do NOT rely on the file link alone — the user may not be able to open it).
142
138
 
@@ -265,7 +261,7 @@ Review access-policy update:
265
261
  Working file: [access-policy-<id>-working.json](/tmp/access-policy-<id>-working.json)
266
262
  ```
267
263
 
268
- The Scope line uses the same source as the create gate — read from `~/.uipath/.auth` (see [Step 4 — Single review gate](#step-4--single-review-gate) above for the full source-mapping). For an update, the values come from the policy's stored `organizationId` / `tenantId` (which must match the logged-in tenant — if they do not, the update will fail at the API).
264
+ The Scope line uses the same source as the create gate — read from `uip login status --output json` (see [Step 4 — Single review gate](#step-4--single-review-gate) above for the full source-mapping). For an update, the values come from the policy's stored `organizationId` / `tenantId` (which must match the logged-in tenant — if they do not, the update will fail at the API).
269
265
 
270
266
  For each row, show `(unchanged)` if the field was not modified. Output the full updated JSON as a ```json code block in the chat as well.
271
267
 
@@ -220,7 +220,7 @@ Resource Catalog tags are tenant-scoped labels that feed `selectors[].tags.value
220
220
  uip admin rcs tag list --output json
221
221
  ```
222
222
 
223
- With no `--tenant`, the command targets the tenant in the current `uip login` context — and that is **also** the tenant the access policy will be authored in (the policy's `tenantId` is read from `~/.uipath/.auth`). This default is the only mode that proves a tag will resolve at evaluation time. Run it before approving any Spec or update that introduces a tag the user named; if the tag is missing from `Data.value[].displayName`, prompt the user to pick a returned tag, or to add the missing one to the Resource Catalog of the policy's tenant before retrying. Never invent a tag, and never silently substitute a near-match.
223
+ With no `--tenant`, the command targets the tenant in the current `uip login` context — and that is **also** the tenant the access policy will be authored in (the policy's `tenantId` is read from `uip login status --output json`). This default is the only mode that proves a tag will resolve at evaluation time. Run it before approving any Spec or update that introduces a tag the user named; if the tag is missing from `Data.value[].displayName`, prompt the user to pick a returned tag, or to add the missing one to the Resource Catalog of the policy's tenant before retrying. Never invent a tag, and never silently substitute a near-match.
224
224
 
225
225
  | Flag | Required? | Purpose |
226
226
  |------|-----------|---------|
@@ -250,16 +250,12 @@ With no `--tenant`, the command targets the tenant in the current `uip login` co
250
250
 
251
251
  ### Tenant alignment
252
252
 
253
- The access-policy `tenantId` is read from `~/.uipath/.auth` (`UIPATH_TENANT_ID`) and pinned at `create` time — the policy can only ever resolve tags from **that** tenant at evaluation.
253
+ The access-policy `tenantId` is read from `uip login status --output json` (`Data.TenantId`) and pinned at `create` time — the policy can only ever resolve tags from **that** tenant at evaluation.
254
254
 
255
255
  - **Default (no `--tenant`)** — verify tags for the in-flight policy. Use this for every Phase 1 / Phase 2 confirmation prompt.
256
256
  - **`--tenant <OTHER_NAME>`** — comparison only (e.g. "do these tag names also exist in our staging tenant?"). Never use a result from another tenant as evidence that a tag will work in the policy's tenant. If the user explicitly asks to check a different tenant, run the call but surface a one-line warning: `Tags from <OTHER_NAME> do not affect a policy authored in <POLICY_TENANT>; copy the tag in the Resource Catalog of <POLICY_TENANT> if it is missing there.`
257
257
 
258
- To recover the policy's tenant name (for the warning above) without echoing the bearer token:
259
-
260
- ```bash
261
- grep "^UIPATH_TENANT_NAME=" ~/.uipath/.auth | cut -d= -f2
262
- ```
258
+ The policy's tenant name (for the warning above) is `Data.Tenant` in `uip login status --output json`.
263
259
 
264
260
  ---
265
261
 
@@ -64,7 +64,7 @@ Use this canonical sample when the user has **no concrete intent** ("I want to c
64
64
  }
65
65
  ```
66
66
 
67
- > Replace `<ORG_UUID>` and `<TENANT_UUID>` from `~/.uipath/.auth` (Critical Rule #3). Replace `<AGENTIC_PROCESS_UUID>` and `<USER_UUID>` via [resource-lookup-guide.md](./resource-lookup-guide.md) once the user names a real process and user (Critical Rule #15). Resolve every `<…_UUID>` during Phase 1 — before the Spec is approved and Phase 2 composes the JSON. Never let a placeholder flow into the working file.
67
+ > Replace `<ORG_UUID>` and `<TENANT_UUID>` from `uip login status --output json` (`Data.OrganizationId`, `Data.TenantId`; Critical Rule #3). Replace `<AGENTIC_PROCESS_UUID>` and `<USER_UUID>` via [resource-lookup-guide.md](./resource-lookup-guide.md) once the user names a real process and user (Critical Rule #15). Resolve every `<…_UUID>` during Phase 1 — before the Spec is approved and Phase 2 composes the JSON. Never let a placeholder flow into the working file.
68
68
 
69
69
  ---
70
70
 
@@ -104,7 +104,7 @@ Pick one to continue:
104
104
 
105
105
  Map the user's reply:
106
106
 
107
- - **Option 1** → seed the Spec Components Table from the [mapping table above](#how-the-sample-seeds-the-spec-components-table) — every row pre-filled. Run [resource-lookup-guide.md](./resource-lookup-guide.md) to resolve the Maestro and User UUIDs (do NOT keep `<…_UUID>` placeholders). Read `~/.uipath/.auth` for `organizationId` / `tenantId` (Critical Rule #3). Continue to the [planning-arch.md](./planning-arch.md) Review gate — explicit `yes` is still required.
107
+ - **Option 1** → seed the Spec Components Table from the [mapping table above](#how-the-sample-seeds-the-spec-components-table) — every row pre-filled. Run [resource-lookup-guide.md](./resource-lookup-guide.md) to resolve the Maestro and User UUIDs (do NOT keep `<…_UUID>` placeholders). Read `organizationId` / `tenantId` from `uip login status --output json` (Critical Rule #3). Continue to the [planning-arch.md](./planning-arch.md) Review gate — explicit `yes` is still required.
108
108
  - **Option 2** → seed the Spec Components Table from the sample for rows the user did NOT change; mark the rows they want to change as `(missing)` and re-enter the [planning-arch.md](./planning-arch.md) iteration loop on those rows only.
109
109
  - **Option 3** → drop the sample, return to [planning-arch.md](./planning-arch.md) intent analysis with the user's full description and build the Spec from scratch.
110
110
 
@@ -1,52 +1,38 @@
1
- # Auth Context — `~/.uipath/.auth`
1
+ # Auth Context — `uip login status`
2
2
 
3
- Every capability in this skill reads tenant, org, and token identifiers from the `uip` CLI auth file. This is the canonical source — never decode JWTs or ask the user when the file is available.
4
-
5
- ## File location
6
-
7
- - Linux / macOS: `~/.uipath/.auth`
8
- - Windows: `C:\Users\<user>\.uipath\.auth`
9
-
10
- ## Format
11
-
12
- `KEY=VALUE` per line (env-style, **NOT** JSON). Written by `uip login`, kept current by the CLI.
3
+ Every capability in this skill reads tenant and organization identifiers from `uip login status --output json`. This is the canonical source — never decode JWTs, never read the CLI's credentials file (it holds the access and refresh tokens), and never ask the user for values the command returns.
13
4
 
14
5
  ## Read recipe
15
6
 
16
7
  ```bash
17
- AUTH_FILE="$HOME/.uipath/.auth"
18
- UIPATH_URL=$(grep '^UIPATH_URL=' "$AUTH_FILE" | cut -d'=' -f2-)
19
- UIPATH_ORGANIZATION_NAME=$(grep '^UIPATH_ORGANIZATION_NAME=' "$AUTH_FILE" | cut -d'=' -f2-)
20
- UIPATH_ORGANIZATION_ID=$(grep '^UIPATH_ORGANIZATION_ID=' "$AUTH_FILE" | cut -d'=' -f2-)
21
- UIPATH_TENANT_NAME=$(grep '^UIPATH_TENANT_NAME=' "$AUTH_FILE" | cut -d'=' -f2-)
22
- UIPATH_TENANT_ID=$(grep '^UIPATH_TENANT_ID=' "$AUTH_FILE" | cut -d'=' -f2-)
23
- UIPATH_ACCESS_TOKEN=$(grep '^UIPATH_ACCESS_TOKEN=' "$AUTH_FILE" | cut -d'=' -f2-)
8
+ uip login status --output json
24
9
  ```
25
10
 
11
+ Read the values from the JSON output; none of them is a secret.
12
+
26
13
  ## Available fields
27
14
 
28
- | Key | Example | Used by |
15
+ | Field | Example | Used by |
29
16
  |---|---|---|
30
- | `UIPATH_URL` | `https://cloud.uipath.com` | principals-lookup (URL construction) |
31
- | `UIPATH_ORGANIZATION_NAME` | `procodeapps` | principals-lookup (URL path segment) |
32
- | `UIPATH_ORGANIZATION_ID` | `3aa10965-a82d-4d9e-8366-0eff8e87bf7a` | principals-lookup (Directory Search GUID) |
33
- | `UIPATH_TENANT_NAME` | `DefaultTenant` | display / audit records |
34
- | `UIPATH_TENANT_ID` | `edb2c1a2-246e-4cd3-a5f1-08aea1cbecec` | `deployment tenant configure/get` target, diagnosis tenant fetch |
35
- | `UIPATH_ACCESS_TOKEN` | `eyJ...` (JWT) | Raw API calls (principals lookup, until CLI wraps it) |
36
- | `UIPATH_REFRESH_TOKEN` | `...` | Do not use — CLI manages refresh |
17
+ | `Data.Status` | `Logged in` | Preflight check |
18
+ | `Data.BaseUrl` | `https://cloud.uipath.com` | Tenant-intent validation, display |
19
+ | `Data.Organization` | `procodeapps` | Organization name — display, confirmation gates |
20
+ | `Data.OrganizationId` | `3aa10965-a82d-4d9e-8366-0eff8e87bf7a` | `organizationId` in a `PolicyDefinition` |
21
+ | `Data.Tenant` | `DefaultTenant` | Tenant name — display, audit records |
22
+ | `Data.TenantId` | `edb2c1a2-246e-4cd3-a5f1-08aea1cbecec` | `tenantId` in a `PolicyDefinition`, `deployment tenant configure/get` target, diagnosis tenant fetch |
23
+ | `Data.Identity` | `admin@example.com` | "Applied by" line in audit records |
37
24
 
38
- ## Preflight check
25
+ When a profile is active (`--profile <name>`), pass the same flag to `uip login status` so the values match the login the other commands use.
39
26
 
40
- Before any capability runs, verify:
27
+ ## Preflight check
41
28
 
42
- 1. `uip login status --output json` returns `Data.Status == "Logged in"`.
43
- 2. `~/.uipath/.auth` exists and `UIPATH_TENANT_ID` is non-empty.
29
+ Before any capability runs, verify that `uip login status --output json` returns `Data.Status == "Logged in"` and a non-empty `Data.TenantId`.
44
30
 
45
31
  If either fails, halt and ask the user to run `uip login` (or `uip login --authority "<AUTHORITY_URL>"` for a non-default host).
46
32
 
47
33
  ## Tenant-intent validation (Apply / Advise / Diagnose)
48
34
 
49
- When the user's prompt names a specific tenant (e.g., *"on staging tenant"*, *"in production"*, *"apply to the prod tenant"*), compare their named tenant against `UIPATH_TENANT_NAME` and `UIPATH_URL` **before** taking any mutation action.
35
+ When the user's prompt names a specific tenant (e.g., *"on staging tenant"*, *"in production"*, *"apply to the prod tenant"*), compare their named tenant against `Data.Tenant` and `Data.BaseUrl` **before** taking any mutation action.
50
36
 
51
37
  Detection: match the named tenant against these substrings — `staging`, `prod`, `production`, `alpha`, `dev`, `development`, `sandbox`, `qa`, `test`, or any explicit tenant display name the user gives (e.g., *"MedCore-Prod"*).
52
38
 
@@ -18,7 +18,7 @@ uip login # interactive OAuth
18
18
  uip login --authority "<AUTHORITY_URL>" # non-default host
19
19
  ```
20
20
 
21
- See [auth-context.md](auth-context.md) for reading `~/.uipath/.auth` (the canonical source for `UIPATH_TENANT_ID`, `UIPATH_TENANT_NAME`, `UIPATH_ORGANIZATION_ID`, `UIPATH_ACCESS_TOKEN`).
21
+ See [auth-context.md](auth-context.md) for reading tenant and organization names and IDs from `uip login status --output json` (`Data.Tenant`, `Data.TenantId`, `Data.Organization`, `Data.OrganizationId`).
22
22
 
23
23
  ## Products
24
24
 
@@ -187,8 +187,8 @@ uip gov compliance-packs catalog list --output json
187
187
  uip gov compliance-packs catalog get <packId> --output json
188
188
 
189
189
  # State (tenant-scoped; Policy:Read for coverage/get/list; Policy:Write for enable/disable/restore)
190
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
191
- ORG_ID=$(grep '^UIPATH_ORGANIZATION_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
190
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
191
+ ORG_ID=$(uip login status --output json | sed -n 's/.*"OrganizationId": *"\([^"]*\)".*/\1/p')
192
192
 
193
193
  # Tenant scope
194
194
  uip gov compliance-packs state coverage tenant $TENANT_ID <packId> --output json
@@ -66,7 +66,7 @@ CLI output is **PascalCase**. Field names below are exactly as returned by `cata
66
66
  ## List currently configured standards
67
67
 
68
68
  ```bash
69
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
69
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
70
70
  uip gov compliance-packs state list tenant $TENANT_ID --output json
71
71
  ```
72
72
 
@@ -13,7 +13,7 @@ Compares the compliance standard's recommended settings against what is currentl
13
13
  ```bash
14
14
  # Read the session dir written by catalog get — never create a new one here.
15
15
  SESSION_TEMP=$(cat "$HOME/.uipath-compliance-current-session")
16
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
16
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
17
17
  uip gov compliance-packs state coverage tenant $TENANT_ID <packId> --output json \
18
18
  > "$SESSION_TEMP/coverage.json"
19
19
 
@@ -29,7 +29,7 @@ uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json \
29
29
  ```powershell
30
30
  # Windows PowerShell
31
31
  $tmpDir = (Get-Content "$env:TEMP\uipath-compliance-current-session.txt" -Raw).Trim()
32
- $tenantId = (Select-String '^UIPATH_TENANT_ID=(.+)' "$env:USERPROFILE\.uipath\.auth").Matches[0].Groups[1].Value
32
+ $tenantId = (uip login status --output json | ConvertFrom-Json).Data.TenantId
33
33
  uip gov compliance-packs state coverage tenant $tenantId <packId> --output json |
34
34
  Set-Content "$tmpDir\coverage.json"
35
35
 
@@ -9,7 +9,7 @@ Removes all policy deployments configured by the compliance standard.
9
9
  ## Check current state first
10
10
 
11
11
  ```bash
12
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
12
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
13
13
  uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json
14
14
  ```
15
15
 
@@ -44,7 +44,7 @@ Require `y`. Halt on anything else.
44
44
  ## Apply
45
45
 
46
46
  ```bash
47
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
47
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
48
48
  uip gov compliance-packs state enable tenant $TENANT_ID <packId> --output json
49
49
  ```
50
50
 
@@ -78,7 +78,7 @@ SUMMARY
78
78
  └──────────────────────┴──────────────────────────────────────────────┘
79
79
  (omit the ⚠ table if no SKIPped controls)
80
80
 
81
- Applied by: <UIPATH_USER from ~/.uipath/.auth> · <tenantName> · <date>
81
+ Applied by: <Data.Identity from uip login status> · <tenantName> · <date>
82
82
  Note: compliance status is determined by your auditor, not this tool.
83
83
  ```
84
84
 
@@ -109,7 +109,7 @@ Aggregate results: note how many tenants have gaps vs are already fully Applied.
109
109
  ### Step 3 — Confirmation
110
110
 
111
111
  ```
112
- Configure <packName> settings across all tenants in <UIPATH_ORGANIZATION_NAME>?
112
+ Configure <packName> settings across all tenants in <ORGANIZATION_NAME>?
113
113
 
114
114
  Tenants to configure:
115
115
  <tenantName1> — <N> settings Not Applied
@@ -141,7 +141,7 @@ for each configured tenant:
141
141
  ### Report
142
142
 
143
143
  ```
144
- <packName> settings configured across <N> tenants in <UIPATH_ORGANIZATION_NAME> ✓
144
+ <packName> settings configured across <N> tenants in <ORGANIZATION_NAME> ✓
145
145
 
146
146
  ┌──────────────────┬──────────────────┐
147
147
  │ Tenant │ Status │
@@ -268,7 +268,7 @@ uip gov aops-policy deployment tenant configure $TENANT_ID \
268
268
  └──────────────────────┴──────────────────────────────────────────────┘
269
269
  (omit ⚠ table if no SKIPped settings)
270
270
 
271
- Applied by: <UIPATH_USER from ~/.uipath/.auth> · <tenantName> · <date>
271
+ Applied by: <Data.Identity from uip login status> · <tenantName> · <date>
272
272
 
273
273
  To configure all <packName> settings: 'Apply the full <packName> standard'
274
274
  ```
@@ -11,7 +11,7 @@ Use this when the user wants to undo changes made to a configured standard, or a
11
11
  ## Check current state first
12
12
 
13
13
  ```bash
14
- TENANT_ID=$(grep '^UIPATH_TENANT_ID=' ~/.uipath/.auth | cut -d'=' -f2-)
14
+ TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
15
15
  uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json
16
16
  ```
17
17
 
@@ -12,30 +12,32 @@ Before writing the node JSON, resolve the app and register it with the solution.
12
12
 
13
13
  ### Step 1 — Resolve solution context and credentials
14
14
 
15
- **Read credentials from the active `uip` session:**
15
+ **Read session details from the active `uip` session** — never read, `cat`, or `source` the CLI's credentials file:
16
16
 
17
17
  ```bash
18
- source "$HOME/.uipath/.auth"
19
- # Variables now available:
20
- # UIPATH_ACCESS_TOKEN — bearer token
21
- # UIPATH_URL — e.g. https://cloud.uipath.com
22
- # UIPATH_ORGANIZATION_NAME — org name (slug)
23
- # UIPATH_ORGANIZATION_ID — org UUID
24
- # UIPATH_TENANT_NAME
25
- # UIPATH_TENANT_ID
26
- # UIPATH_PROJECT_ID
18
+ uip login status --output json
27
19
  ```
28
20
 
29
- Map to working variables:
21
+ Map to working variables (`Data.Status` must be `Logged in`; otherwise ask the user to run `uip login`):
30
22
 
31
23
  | Variable | Source |
32
24
  |---|---|
33
- | `BASE_URL` | `$UIPATH_URL` |
34
- | `ORG_NAME` | `$UIPATH_ORGANIZATION_NAME` |
35
- | `ORG_ID` | `$UIPATH_ORGANIZATION_ID` |
36
- | `TENANT_ID` | `$UIPATH_TENANT_ID` |
37
- | `ACCESS_TOKEN` | `$UIPATH_ACCESS_TOKEN` |
38
- | `USER_ID` | `sub` claim — base64url-decode the middle segment of `ACCESS_TOKEN`, parse JSON, read `sub` |
25
+ | `BASE_URL` | `Data.BaseUrl` |
26
+ | `ORG_NAME` | `Data.Organization` |
27
+ | `ORG_ID` | `Data.OrganizationId` |
28
+ | `TENANT_ID` | `Data.TenantId` |
29
+ | `USER_ID` | `Data.UserId` |
30
+
31
+ **Sending the requests below** — use `uip api`, which adds `{BASE_URL}`, `{ORG_NAME}` and the token itself (never extract the token). All three are organization-level `studio_` calls: pass the path after `{ORG_NAME}/`, `--level organization`, and the tenant header. For a POST, write the JSON body to a file first:
32
+
33
+ ```bash
34
+ uip api "studio_/backend/api/resourcebuilder/solutions/<SOLUTION_ID>/resources/search?kind=app&..." \
35
+ --level organization --header "x-uipath-tenantid: <TENANT_ID>" --output json
36
+ uip api "studio_/backend/api/resourcebuilder/solutions/<SOLUTION_ID>/resources/retrieve-configuration" \
37
+ --level organization --method POST --input "<BODY_FILE>" --header "x-uipath-tenantid: <TENANT_ID>" --output json
38
+ ```
39
+
40
+ The response is in `Data.Body`. If `uip api` is an unknown command, run `uip update`, then retry.
39
41
 
40
42
  **Resolve solution context:**
41
43
 
@@ -71,7 +73,7 @@ GET {BASE_URL}/{ORG_NAME}/studio_/backend/api/resourcebuilder/solutions/{SOLUTIO
71
73
  &searchTerm={APP_NAME}
72
74
  ```
73
75
 
74
- Headers: `Authorization: Bearer {ACCESS_TOKEN}`, `Accept: application/json`, `x-uipath-tenantid: {TENANT_ID}`
76
+ Headers: `x-uipath-tenantid: {TENANT_ID}` (`uip api` adds authorization and `Accept: application/json`)
75
77
 
76
78
  Response:
77
79
 
@@ -122,7 +124,7 @@ Content-Type: application/json
122
124
  }
123
125
  ```
124
126
 
125
- Headers: `Authorization: Bearer {ACCESS_TOKEN}`, `Content-Type: application/json`, `Accept: application/json`, `x-uipath-tenantid: {TENANT_ID}`
127
+ Headers: `x-uipath-tenantid: {TENANT_ID}` (`uip api` adds authorization; `--input` sets `Content-Type: application/json`)
126
128
 
127
129
  The response is a resource object. Key extractions from `spec`:
128
130
 
@@ -22,7 +22,7 @@ Classify the requested **outcome** before running any command:
22
22
 
23
23
  **Always reach for `uip` CLI commands first.** The CLI covers auth, Orchestrator (folders, processes, jobs, machines, users, roles, sessions, calendars, settings, audit logs, credential stores, feeds, attachments), resources (assets, queues, queue items, storage buckets, bucket files, libraries, webhooks, triggers), Integration Service (connectors, connections, activities, IS triggers), traces, and licensing end-to-end.
24
24
 
25
- Hand-rolling HTTP calls — reading `~/.uipath/.auth` and POSTing to `/odata/...` or `/orchestrator_/...` — almost always misses something the CLI gets right: the `X-UIPATH-OrganizationUnitId` folder header, OData filter shape (`Key eq '...'` with escaped single quotes), pagination envelope, retry semantics, validation error shape, or `Result/Code/Data` output contract. **Reach for raw REST only after you've searched [`references/uip-commands.md`](references/uip-commands.md) for your task and confirmed no `uip` command covers it.** The CLI is the source of truth.
25
+ Hand-rolling HTTP calls — fetching a token and POSTing to `/odata/...` or `/orchestrator_/...` — almost always misses something the CLI gets right: the `X-UIPATH-OrganizationUnitId` folder header, OData filter shape (`Key eq '...'` with escaped single quotes), pagination envelope, retry semantics, validation error shape, or `Result/Code/Data` output contract. **Reach for raw REST only after you've searched [`references/uip-commands.md`](references/uip-commands.md) for your task and confirmed no `uip` command covers it.** The CLI is the source of truth.
26
26
 
27
27
  If you find yourself about to `curl` `https://cloud.uipath.com/...` — stop. Search the command index first. Examples of what people often miss:
28
28
 
@@ -73,7 +73,7 @@ Useful flags: `--skip-node`, `--skip-skills`, `--skip-dotnet`, `--skip-python`,
73
73
  Load this skill BEFORE writing any code that talks to UiPath. Specific triggers:
74
74
 
75
75
  - **CLI bootstrap / workstation setup**: fresh machine, `uip` missing, Node/npm missing, Python or .NET SDK missing, or an LLM coding agent needs UiPath skills installed
76
- - **Auth & tenant**: login, logout, switch tenant, named login profiles via `--profile <name>`, `~/.uipath/.auth`, OAuth token, organization
76
+ - **Auth & tenant**: login, logout, switch tenant, named login profiles via `--profile <name>`, session details (`uip login status`), REST calls the CLI does not cover (`uip api`), organization
77
77
  - **Orchestrator core**: folders (`list/get/create/edit/move/delete/runtimes`), processes/releases, jobs (`start/stop/logs/traces/healing-data`), packages (`upload/download/versions`), machines, users / roles / sessions (incl. DirectoryUser/DirectoryGroup/DirectoryRobot/DirectoryExternalApplication), licenses, calendars, settings, audit logs, credential stores, feeds, attachments
78
78
  - **Resources (Orchestrator-scoped)**: assets (text/integer/bool/credential), queues + queue items, storage buckets + bucket files (`upload/download/get-download-url/get-upload-url`), libraries (`.nupkg`), webhooks (HMAC signing), triggers (time/queue/api)
79
79
  - **Integration Service**: connectors, connections (OAuth flow), activities, IS triggers, agent-workflow reference resolution
@@ -100,20 +100,45 @@ Load this skill BEFORE writing any code that talks to UiPath. Specific triggers:
100
100
 
101
101
  For `uip solution` lifecycle (init / pack / publish / deploy / activate / upload) and CI/CD pipelines that build and deploy UiPath solutions, load [`uipath-solution`](/uipath:uipath-solution).
102
102
 
103
- ## Auth token location
103
+ ## Session Details and REST Authentication
104
104
 
105
- The default login stores credentials at **`~/.uipath/.auth`**:
105
+ The CLI owns its credentials file. Never read, `cat`, `grep`, or `source` it: it holds the access token and the refresh token, and anything read lands in the conversation.
106
106
 
107
- ```
108
- UIPATH_URL=https://cloud.uipath.com
109
- UIPATH_ORGANIZATION_NAME=my_org
110
- UIPATH_TENANT_NAME=my_tenant
111
- UIPATH_ACCESS_TOKEN=eyJ...
112
- UIPATH_ORGANIZATION_ID=...
113
- UIPATH_TENANT_ID=...
107
+ **Organization, tenant, base URL, expiry** — read them from `uip login status --output json`:
108
+
109
+ | Field | Value |
110
+ |---|---|
111
+ | `Data.Status` | Session state, e.g. `Logged in` |
112
+ | `Data.BaseUrl` | Cloud base URL, e.g. `https://cloud.uipath.com` |
113
+ | `Data.Organization` / `Data.OrganizationId` | Organization name / UUID |
114
+ | `Data.Tenant` / `Data.TenantId` | Tenant name / UUID |
115
+ | `Data.Identity` | Logged-in user or application |
116
+ | `Data.ExpirationDate` | Access-token expiry |
117
+
118
+ A status other than `Logged in` does not end the task: still run the requested command, then report its result. If it fails with an authentication error, tell the user to run `uip login`.
119
+
120
+ **REST call the CLI does not cover** — use `uip api`. The CLI adds base URL, organization, tenant and a fresh access token, and prints only the response; the token never reaches the shell or the conversation:
121
+
122
+ ```bash
123
+ uip api "orchestrator_/odata/Folders?\$top=1" --output json
124
+ uip api "<SERVICE_PATH>" --method POST --input "<BODY_FILE>" --output json
125
+ uip api "<SERVICE_PATH>" --level organization --header "x-uipath-tenantid: <TENANT_ID>" --output json
114
126
  ```
115
127
 
116
- Named profiles store credentials at **`~/.uipath/profiles/<name>/.auth`**. Use named profiles when the user asks to keep multiple UiPath logins on the same machine:
128
+ | Option | Use |
129
+ |---|---|
130
+ | `<SERVICE_PATH>` | Path under `<BASE_URL>/<ORG>/<TENANT>` (or `<BASE_URL>/<ORG>` with `--level organization`), e.g. `orchestrator_/odata/Releases?...`. Omit the leading `/` (Git Bash on Windows rewrites it). Never a full URL |
131
+ | `--method <METHOD>` | `GET` (default), `POST`, `PUT`, `PATCH`, `DELETE` |
132
+ | `--input <FILE>` | Request body; `Content-Type` defaults to `application/json` |
133
+ | `--folder-key <FOLDER_KEY>` | Sends `X-UIPATH-FolderKey` |
134
+ | `--header "<NAME>: <VALUE>"` | Extra headers (variadic). `Authorization` cannot be set |
135
+ | `--output-file <FILE>` | Save body to a file (binary downloads) |
136
+
137
+ Response: `Data.StatusCode`, `Data.Body` (parsed JSON or text). Non-2xx fails with `Context.HttpStatus` and the service's error in `Data.Body`; `401` exits `2` → ask the user to run `uip login`. If `uip api` is an unknown command, run `uip update`, then retry.
138
+
139
+ Never extract the access token: no `uip login refresh --output json` for REST, no `curl` with a bearer header, never ask the user to paste a token.
140
+
141
+ Named profiles keep several UiPath logins on one machine:
117
142
 
118
143
  ```bash
119
144
  uip login --profile dev --output json
@@ -121,15 +146,15 @@ uip login status --profile dev --output json
121
146
  uip login which --profile dev --output json
122
147
  ```
123
148
 
149
+ `uip login which` returns the path of the credentials file behind a login, never its contents. Use it to locate a profile's file; never open the file it names.
150
+
124
151
  Rules:
125
152
 
126
- - `--profile <name>` is a global option. Pass it on every `uip` command that should use that login, for example `uip --profile dev or folders list --output json`.
127
- - `default` means the built-in unprofiled login and maps back to `~/.uipath/.auth`.
153
+ - `--profile <name>` is a global option. Pass it on every `uip` command that should use that login, for example `uip --profile dev or folders list --output json` and `uip --profile dev api "orchestrator_/odata/Folders" --output json`.
154
+ - `default` means the built-in unprofiled login.
128
155
  - Profile names may contain only letters, numbers, `.`, `_`, and `-`. Never use paths like `../prod`.
129
156
  - `--profile` and auth-command `--file <folder>` are mutually exclusive. Use one or the other.
130
- - A missing named profile does not fall back to `~/.uipath/.auth` or Robot credentials. Tell the user to run `uip login --profile <name>`.
131
-
132
- These tokens can be reused for direct Orchestrator REST API calls when CLI commands don't cover a use case. If a named profile is active, read the path from `uip login which --profile <name> --output json` rather than assuming `~/.uipath/.auth`.
157
+ - A missing named profile does not fall back to the default login or Robot credentials. Tell the user to run `uip login --profile <name>`.
133
158
 
134
159
  ## Quick Start
135
160
 
@@ -372,7 +397,7 @@ Every `uip` command accepts:
372
397
 
373
398
  - **Starting jobs requires runtimes — check before you offer.** Before proposing to publish, schedule or run anything, check the target folder's runtimes and tell the user which stages can and cannot complete ([end-to-end-readiness-guide.md](references/orchestrator/end-to-end-readiness-guide.md)). Error 2818 "no runtimes configured" means the folder needs machine templates with Unattended/Development runtimes assigned.
374
399
  - **For `uip solution` pack / publish / deploy / activate flows, load [`uipath-solution`](/uipath:uipath-solution).** This skill owns the auth and Orchestrator surface those flows depend on; the solution skill owns the lifecycle commands.
375
- - **Fallback: direct REST API.** When CLI tools don't support an operation, use the Orchestrator REST API with the access token from `~/.uipath/.auth`. See [references/orchestrator/orchestrator.md - REST API](references/orchestrator/orchestrator.md).
400
+ - **Fallback: direct REST API.** When CLI tools don't support an operation, use the Orchestrator REST API through `uip api` ([Session Details and REST Authentication](#session-details-and-rest-authentication)). See [references/orchestrator/orchestrator.md - REST API](references/orchestrator/orchestrator.md).
376
401
  - **Orchestrator rate-limits some endpoints per tenant.** Filtered `jobs list` / `queue-items list` calls are budgeted per minute, and `--export` on `jobs logs` / `audit-logs list` has a quota of 100 per day. The CLI does not retry a 429 (`ErrorCode: rate_limited`). Read [references/orchestrator/api-limits.md](references/orchestrator/api-limits.md) before writing any poller, loop or script over these commands.
377
402
 
378
403
  ## References
@@ -95,7 +95,7 @@ Each concept is covered authoritatively in the linked workflow guide:
95
95
 
96
96
  ## REST API Fallback
97
97
 
98
- When the CLI does not cover an operation, use the License Resource Manager / License Accountant APIs directly with a stored token from `~/.uipath/.auth`. See [orchestrator.md - REST API](../orchestrator/orchestrator.md) for the auth pattern.
98
+ When the CLI does not cover an operation, call the License Resource Manager / License Accountant APIs through `uip api` (for example `uip api "<SERVICE_PATH>" --output json`). Never extract the access token.
99
99
 
100
100
  ---
101
101
 
@@ -96,7 +96,13 @@ The CLI uses GUID keys for all entity references. Numeric IDs are never exposed
96
96
 
97
97
  ## REST API Fallback
98
98
 
99
- When the CLI does not cover an operation, you can fall back to the Orchestrator REST API using the access token stored in `~/.uipath/.auth`. Always check `uip or --help` first — most operations are covered by the CLI, and a command is safer and more consistent than hand-rolled REST. Only reach for REST when there is genuinely no command for what you need (and consider reporting the gap so the CLI can cover it).
99
+ When the CLI does not cover an operation, fall back to the Orchestrator REST API through `uip api`, which adds base URL, organization, tenant and token itself:
100
+
101
+ ```bash
102
+ uip api "orchestrator_/odata/<ENTITY>?\$top=10" --folder-key "<FOLDER_KEY>" --output json
103
+ ```
104
+
105
+ Read the result from `Data.Body`. Never extract the access token for `curl`, and never ask the user to paste one. Always check `uip or --help` first — most operations are covered by the CLI, and a command is safer and more consistent than hand-rolled REST. Only reach for REST when there is genuinely no command for what you need (and consider reporting the gap so the CLI can cover it).
100
106
 
101
107
  REST callers are subject to the same per-tenant rate limits and export quotas as the CLI. Honor `Retry-After` on a 429. See [api-limits.md](api-limits.md).
102
108
 
@@ -5,7 +5,7 @@
5
5
  **Global flags:**
6
6
  - `--output json` — always use when calling programmatically
7
7
  - `--output-filter <expr>` — JMESPath filter for JSON output
8
- - `--profile <name>` — use a named auth profile from `~/.uipath/profiles/<name>/.auth`; `default` keeps the built-in unprofiled login
8
+ - `--profile <name>` — use a named login profile; `default` keeps the built-in unprofiled login
9
9
  - `--tenant <name>` — tenant override (defaults to authenticated tenant)
10
10
  - `--verbose` — enable debug logging
11
11
 
@@ -50,15 +50,15 @@ iwr https://download.uipath.com/uipath-cli/install.ps1 -OutFile install.ps1
50
50
  | Command | Description |
51
51
  |---|---|
52
52
  | `uip login` | Authenticate with UiPath Cloud |
53
- | `uip login status` | Show current login status |
54
- | `uip login which` | Show which `.auth` file backs the current login |
53
+ | `uip login status` | Show login status, base URL, organization and tenant names and IDs, expiry |
54
+ | `uip login refresh` | Refresh the session proactively. Not for REST calls: its JSON output includes the access token |
55
+ | `uip api <SERVICE_PATH>` | Call a REST endpoint the CLI does not cover with the session (token never shown). See SKILL.md § Session Details and REST Authentication |
55
56
  | `uip login tenant list` | List available tenants |
56
57
  | `uip login tenant set <name>` | Set active tenant |
57
58
  | `uip logout` | End session and clear tokens |
58
59
 
59
60
  Named profiles:
60
61
  - Use `uip login --profile dev`, then pass `--profile dev` on each command that should use that login.
61
- - Profile credentials live at `~/.uipath/profiles/dev/.auth`; the built-in default stays at `~/.uipath/.auth`.
62
62
  - Missing profiles do not fall back to the default login or Robot credentials.
63
63
  - Valid profile names use letters, numbers, `.`, `_`, and `-`; `default` is reserved for the built-in login.
64
64
  - Do not combine `--profile <name>` with auth-command `--file <folder>`.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.207.0-preview.2172",
3
+ "skillsVersion": "1.207.0-preview.2182",
4
4
  "targetCli": "^1.207.0"
5
5
  }