From 7bc61e05dce24b1ed35efca64879d5d74db0d82b Mon Sep 17 00:00:00 2001 From: Deepti Rajagopal Date: Fri, 26 Jun 2026 16:08:01 -0700 Subject: [PATCH] @W-21421698 Update SDK documentation for SF CLI integration Fixed two documentation gaps in README.md: 1. Added missing --sf-cli-org flag to datacustomcode deploy example - The CLI supports this flag but the Quick Start example didn't show it - Added to both the example usage and CLI reference section 2. Clarified sf org login web command usage - Production login now shows --instance-url placeholder - Makes it explicit that instance-url should be provided These changes align the documentation with the actual CLI implementation and help users properly authenticate with Salesforce CLI. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a529b9..5b0fc96 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ After modifying the `entrypoint.py` as needed, using any dependencies you add in ```zsh cd my_package datacustomcode scan ./payload/entrypoint.py -datacustomcode deploy --path ./payload --name my_custom_script --cpu-size CPU_L +datacustomcode deploy --path ./payload --name my_custom_script --cpu-size CPU_L --sf-cli-org myorg ``` > [!TIP] @@ -320,6 +320,7 @@ Options: - `--description TEXT`: Description of the transformation job (default: "") - `--network TEXT`: docker network (default: "default") - `--cpu-size TEXT`: CPU size for the deployment (default: `CPU_2XL`). Available options: CPU_L(Large), CPU_XL(Extra Large), CPU_2XL(2X Large), CPU_4XL(4X Large) +- `--sf-cli-org TEXT`: Salesforce CLI org alias or username (e.g. `myorg`). Fetches credentials via `sf org display` — no `datacustomcode configure` step needed. Takes precedence over `--profile` if both are supplied. - `--function-invoke-opt TEXT`: Currently we support only `UnstructuredChunking` for functions. @@ -483,7 +484,7 @@ sf --version **Browser-based (recommended for developer orgs and sandboxes):** ```zsh # Production / Developer Edition -sf org login web --alias myorg +sf org login web --alias myorg --instance-url # Sandbox sf org login web --alias mysandbox --instance-url https://test.salesforce.com