Error: --chain is not recognized as the name of a cmdlet, function

Please provide as much information as possible to help the community/ team resolve your issue quicker


When running the CLI Binaries on Windows I am facing an error

Command

.\subspace-node-windows-x86_64-snapshot-2022-may-03`
--chain testnet `
--execution native `
--unsafe-pruning `
--pruning 1024 `
--keep-blocks 1024 `
--validator `
--name NameHere

Once command is run I face the error below.

.\subspace-node-windows-x86_64-snapshot-2022-may-03
--chain : The term '.\subspace-node-windows-x86_64-snapshot-2022-may-03
--chain' is not recognized as the name of a cmdlet, function, script file, or operable program.
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ .\subspace-node-windows-x86_64-snapshot-2022-may-03`
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo    : ObjectNotFound: (.\subspace-node...-may-18
--chain:String) [], CommandNotFoundException
   + FullyQualifiedErrorId: CommandNotFoundExecption

Please let me know if there is anything im missing :slight_smile:

If you look at your command you will notice the ` at the end of the file name has no space, this is likely causing the issue with the command. Your correct command should be like this

.\subspace-node-windows-x86_64-snapshot-2022-may-03 `
--chain testnet `
--execution native `
--unsafe-pruning `
--pruning 1024 `
--keep-blocks 1024 `
--validator `
--name NameHere