Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(pam): --domain on cli access cmd

xad7eb8ce8ab7
diff --git a/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx b/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx
index 0860192c5e..0a9abc894a 100644
--- a/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx
+++ b/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx
@@ -59,7 +59,7 @@ const LaunchTab = ({
const cliHost = selectedHost ?? (needsHost ? "HOST" : undefined);
const cliCommand = `infisical pam access ${account.folderName}/${account.name}${
cliHost ? ` --target '${cliHost}'` : ""
- }`;
+ } --domain ${window.location.origin}`;
const handleCopyCommand = async () => {
await navigator.clipboard.writeText(cliCommand);
createNotification({ text: "Command copied to clipboard", type: "success" });