Repository: MystenLabs/sui (language: rust)

Issue:
Sui CLI Bug - Windows Terminal
## Description
the sui cli on windows is buggy regarding the ptb command. The --assign parameter requires both <name> and <value> to be surrounded with double quotes or other wise the cli will not pick up that both belong together

## Steps to Reproduce Issue
Open windows powershell and run:
sui client ptb --assign forge @address --assign to_address @address --move-call address::example::new_sword forge 3 3 --assign sword --transfer-objects "[sword]" to_address --gas-budget 20000000

this does not work. But the following does work:
sui client ptb --assign "forge @address" --assign "to_address @address" --move-call address::example::new_sword forge 3 3 --assign sword --transfer-objects "[sword]" to_address --gas-budget 20000000


## Expected Result
It should work with or without the double quotes



Discussion / hints:
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!
Hi @BuFuuu thanks for sharing this. 

Unfortunately, it's kinda tricky because different shells handle strings and quotes differently.

Were you using powershell or command prompt, or some other terminal?
Just PowerShell, and yes, it can be tricky!

I think it would be helpful to add a note to this page ([link](https://docs.sui.io/guides/developer/first-app/publish)) about this issue. Specifically, the --assign parameter should be enclosed in quotes.
Will do! Planning to also add something here: https://docs.sui.io/references/cli/ptb
Thanks!
Thanks for the amazingly quick response! SUI is awesome:)

Fix patch:
diff --git a/docs/content/guides/developer/first-app/publish.mdx b/docs/content/guides/developer/first-app/publish.mdx
index 695e5952f7d99..ded8e9361ab88 100644
--- a/docs/content/guides/developer/first-app/publish.mdx
+++ b/docs/content/guides/developer/first-app/publish.mdx
@@ -114,6 +114,8 @@ $ sui client ptb \
 
 {@include: ../../../snippets/address-prefix.mdx}
 
+Depending on your shell and operating system, you might need to pass some values with quotes (`"`), for example: `--assign "forge @<FORGE-ID>"`.
+
 :::
 
 Make sure to replace `<FORGE-ID>`, `<TO-ADDRESS>`, and `<PACKAGE-ID>` with the actual `objectId` of the `Forge` object, the address of the recipient (your address in this case), and the `packageID` of the package, respectively. 


Test patch: