-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Command line arguments zh HK
ASF ๆฏๆดไธไบ่ฝๅค ๅฝฑ้ฟ็จๅผ้่กๆ็ๅฝไปคๅๅๆธใ ้ซ็ด็จๆถๅฏไฝฟ็จ้ไบๅๆธไปฅๅฎ็พฉ็จๅผ้่กๆนๅผใ ่ASF.json ้
็ฝฎๆไปถ็้ ่จญๆนๅผ็ธๆฏ๏ผๅฝไปคๅๅๆธๅฏ็จๆผๆ ธๅฟๅๅงๅ๏ผไพๅฆ--path๏ผใๅนณๅฐ็นๅฎ่จญ็ฝฎ๏ผไพๅฆ--system-required๏ผๆๆๆๆง่ณๆ๏ผไพๅฆ--cryptkey๏ผใ
ไฝฟ็จๆนๆณๅๆฑบๆผๆจ็ๆไฝ็ณป็ตฑๅASF็ๆฌใ
Generic๏ผ้็จ๏ผ:
dotnet ArchiSteamFarm.dll --ๅๆธ -- ๅฆไธๅๅๆธWindows:
.\ArchiSteamFarm.exe --ๅๆธ--ๅฆไธๅๅๆธLinux/OS X
./ArchiSteamFarm --ๅๆธ--ๅฆไธๅๅๆธๅฝไปคๅๅๆธไนๅฏ็จๆผ้็จๅฉๆ่
ณๆฌไธญ๏ผไพๅฆArchiSteamFarm.cmdๆArchiSteamFarm.shใ ้คๆญคไนๅค, ๅฆๆๅ็**Docker**โ้จๅไธญๆ่ฟฐ๏ผๅจไฝฟ็จๅฉๆ่
ณๆฌๆ, ๆจ้ๅฏไปฅไฝฟ็จ ASF_ARGS ็ฐๅขๅฑฌๆง,ใ
่ฅๆจ็ๅๆธๅ ๅซ็ฉบๆ ผ๏ผ่ซๅๅฟ ไฝฟ็จๅผ่ๅฐๅ ถๆฌไฝใ ๅ ฉๅ้ฏ่ชค็คบไพ๏ผ
./ArchiSteamFarm --path /home/archi/My Downloads/ASF # Bad!
./ArchiSteamFarm --path=/home/archi/My Downloads/ASF # Bad!ๅ ฉๅๆญฃ็ขบ็คบไพ๏ผ
./ArchiSteamFarm --path "/home/archi/My Downloads/ASF" # OK
./ArchiSteamFarm "--path=/home/archi/My Downloads/ASF" # OK--cryptkey<key>ๆ--cryptkey=<key>โโๅฐไฝฟ็จๅผ็บ<key>็่ช่จๅฏ้ฐๅๅ ASFใ ๆญค้ธ้
ๆๅฝฑ้ฟ**ๅฎๅ
จๆง**๏ผไธฆๅฐๅฐ่ดASFไฝฟ็จๆจ็่ช่จๅฏ้ฐ <key>๏ผ่ไธๆฏ็กฌ็ทจ็ขผๅจ็จๅผไธญ็้ ่จญๅผใ Since this property affects default encryption key (for encrypting purposes) as well as salt (for hashing purposes), keep in mind that everything encrypted/hashed with this key will require it to be passed on each ASF run.
Due to the nature of this property, it's also possible to set cryptkey by declaring ASF_CRYPTKEY environment variable, which may be more appropriate for people that would want to avoid sensitive details in the process arguments.
--ignore-unsupported-environment - will cause ASF to ignore detection of unsupported environment, which normally is signalized with an error and forced exit. As of now, unsupported environment is classifed as running .NET Framework build on platform that could be running .NET Core build instead. Since we support generic-netf builds only in very limited scenarios (with Mono), using it for other cases (e.g. for launching on win-x64 platform) is not supported. Visit compatibility for more info.
--network-group <group> or --network-group=<group> - will cause ASF to init its limiters with a custom network group of <group> value. This option affects running ASF in multiple instances by signalizing that given instance is dependent only on instances sharing the same network group, and independent of the rest. Typically you want to use this property only if you're routing ASF requests through custom mechanism (e.g. different IP addresses) and you want to set networking groups yourself, without relying on ASF to do it automatically (which currently includes taking into account WebProxy only). Keep in mind that when using a custom network group, this is unique identifier within the local machine, and ASF will not take into account any other details, such as WebProxy value, allowing you to e.g. start two instances with different WebProxy values which are still dependent on each other.
Due to the nature of this property, it's also possible to set the value by declaring ASF_NETWORK_GROUP environment variable, which may be more appropriate for people that would want to avoid sensitive details in the process arguments.
--no-config-watch - by default ASF sets up a FileSystemWatcher over your config directory in order to listen for events related to file changes, so it can interactively adapt to them. For example, this includes stopping bots on config deletion, restarting bot on config being changed, or loading keys into BGR once you drop them into the config directory. This switch allows you to disable such behaviour, which will cause ASF to completely ignore all the changes in config directory, requiring from you to do such actions manually, if deemed appropriate. Usually we recommend to keep the config events enabled, but if you have a particular reason for disabling them and would instead prefer ASF to not do that, you can use this switch for achieving that purpose.
--no-restartโโๆญค้้ไธป่ฆ็จๆผ**Docker**โๅฎนๅจไธฆๅฐ AutoRestart ๅผทๅถ่จญ็ฝฎ็บ falseใ ้ค้ๆ็นๆฎ็้่ฆ๏ผๅฆๅๆจๆ็ดๆฅๅจ้
็ฝฎไธญ้
็ฝฎ AutoRestart ๅฑฌๆงใ้ๅ้้็ไฝ็จๆฏไฝฟ Docker ่
ณๆฌไธๅฟ
ไฟฎๆนๆจ็ๅ
จๅ้
็ฝฎๅณๅฏ้ฉๆ็ฐๅขใ ็ถ็ถ๏ผๅฆๆๆจๅจ่
ณๆฌไธญ้่ก ASF๏ผไนๅฏไปฅไฝฟ็จๆญค้้๏ผๅฆๅๆจๆๅฅฝไฝฟ็จๅ
จๅ้
็ฝฎๅฑฌๆง๏ผใ
--path <path>ๆ--path=<path>โโASFๅจๅๅๆๅง็ตๆๅฐ่ช่ณ่ช่บซๆๅจ็็ฎ้ใ By specifying this argument, ASF will navigate to given directory after initialization, which allows you to use custom path for various application parts (including config, plugins and www directories, as well as NLog.config file), without a need of duplicating binary in the same place. ๅฆๆๆจๆณๅฐไบ้ฒไฝๆชๆกๅๅฏฆ้้
็ฝฎๆชๆกๅ้๏ผ้ๅฏ่ฝๆ้ๅธธๆ็จ๏ผ้กไผผLinux ๆๅ
ๆฉๅถโโ้ๆจฃๆจๅฐฑๅฏไปฅๅจๅคๅ่จญ็ฝฎไธญๅ
ฑ็จไธๅ๏ผๆๆฐ็๏ผไบ้ฒไฝๆชๆกใ ๆญค่ทฏๅพๆขๅฏไปฅๆฏๅบๆผ็ถๅ ASF ไบ้ฒไฝๆชๆกๆๅจไฝ็ฝฎ็็ธๅฐ่ทฏๅพ๏ผไนๅฏไปฅๆฏ็ตๅฐ่ทฏๅพใ Keep in mind that this command points to new "ASF home" - the directory that has the same structure as original ASF, with config directory inside, see below example for explanation.
Due to the nature of this property, it's also possible to set expected path by declaring ASF_PATH environment variable, which may be more appropriate for people that would want to avoid sensitive details in the process arguments.
If you're considering using this command-line argument for running multiple instances of ASF, we recommend reading our compatibility page on this manner.
็ฏไพ:
dotnet /opt/ASF/ArchiSteamFarm.dll --path /opt/TargetDirectory # Absolute path
dotnet /opt/ASF/ArchiSteamFarm.dll --path ../TargetDirectory # Relative path works as well
ASF_PATH=/opt/TargetDirectory dotnet /opt/ASF/ArchiSteamFarm.dll # Same as env variableโโโ /opt
โ โโโ ASF
โ โ โโโ ArchiSteamFarm.dll
โ โ โโโ ...
โ โโโ TargetDirectory
โ โโโ config
โ โโโ logs (generated)
โ โโโ plugins (optional)
โ โโโ www (optional)
โ โโโ log.txt (generated)
โ โโโ NLog.config (optional)
โโโ ...
--process-requiredโโ้ ่จญๆ
ๆณไธ๏ผASF ๅฐๆๅจ็กๆฉๆขฐไบบ้่ก็ๆ
ๆณไธ้้๏ผ่ฒๆๆญค้้ๅฐ็ฆ็จ้ไธ่ก็บใ ้ปๆญข่ชๅ้ๆฉๅ่ฝๅจๅ**IPC**้
ๅไธ็นๅฅๆ็จ๏ผๅคงๅคๆธ็จๆถ้ฝๅธๆไปๅ็ Web ๆๅๆญฃๅธธ้่ก๏ผ็ก่ซๅ็จไบๅคๅฐๅๆฉๆขฐไบบใ ๅฆๆๆจๅจไฝฟ็จ IPC ๆ่
้่ฆ ASF ้ฒ็จๆ็บ้่ก็ด่ณๆๅ้้ๅฎ๏ผ้ๅฐฑๆฏๆญฃ็ขบ็้ธ้
ใ
ๅฆๆๆจไธๆ็ฎ้่ก IPC๏ผๆญค้ธ้ ๅฐๆจไพ่ชชๅฐ็ธ็ถ็ก็จ๏ผ ๅ ็บๆจๅฏไปฅๅจ้่ฆๆๅๆฌกๅๅ่ฉฒ้็จ (่ไธๆฏ ASF ็ web ไผบๆๅจ๏ผๅจ้ฃ่ฃๆจ้่ฆๅฎไธ็ดๅต่ฝไปฅ็ผ้ๅฝไปค)ใ
--system-requiredโโ่ฒๆๆญค้้ๅฐๅฐ่ด ASF ๅ่ฉฆ้็ฅๆไฝ็ณป็ตฑใๆญค้ฒ็จ่ฆๆฑ็ณป็ตฑๅจๅ
ถๅญ็ๆๅ
ง่ๆผๅๅ็ๆ
ไธฆๆญฃๅธธ้่กใใ ็ถๅ๏ผๆญค้้ๅ
ๅฐ Windows ้ป่
ฆๆๆ๏ผๅช่ฆASF้ฒ็จๆญฃๅจ้่ก๏ผๅฎๅฐฑๆ้ปๆญขๆจ็็ณป็ตฑ้ฒๅ
ฅ็ก็ ๆจกๅผใ ็ถๆจๅจๅค้ไฝฟ็จ PC ๆ่
็ญ่จๆฌ้ป่
ฆๆๅกๆ๏ผ้ไธๅ่ฝๆฏ็ธ็ถๅฏฆ็จ็๏ผๅ ็บ ASF ่ฝๅค ๅจๆๅกๆไฟๆ็ณป็ตฑ่ๆผๅ้็ๆ
๏ผ็ถๅพ๏ผไธๆฆๆๅกๅฎๆ๏ผASF ๅฐฑๆๅๅนณๅธธไธๆจฃ่ชๅ้้๏ผๅ
่จฑๆจ็็ณป็ตฑๅๆฌก้ฒๅ
ฅ็ก็ ๆจกๅผ๏ผๅ ๆญค๏ผไธๆฆๆๅกๅฎๆ๏ผๅณๅฏ็ซๅป็ฏ็้ปๅใ
่ซๆณจๆ๏ผ่ฆ่ฎฉ ASFๆญฃ็ขบๅฐ่ชๅ้้๏ผๆจ้้่ฆๅ
ถไป่จญ็ฝฎโโ็นๅฅๆฏ้ฟๅ
--process-required๏ผไธ็ขบไฟๆๆๆฉๆขฐไบบ้ฝๅทฒๅ็จ ShutdownOnFarmingFinishedใ ็ถ็ถ๏ผ่ชๅ้ๆฉๅชๆฏ้ๅๅๆธ็็จๆณไนไธ๏ผ่้ๅฟ
้๏ผๅ ็บๆจ้ๅฏไปฅๅฐๆญคๅๆธ้
ๅ --process-required ไฝฟ็จ๏ผๅพ่ๆๆๅฐไฝฟๆจ็็ณป็ตฑๅจ ASF ๅๅไนๅพ็ก้้่กไธๅปใ
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|
- ๐ก Home
- ๐ฌ FAQ
- โ๏ธ Setting up (start here)
- ๐ฅ ๅพๅฐๅบ่ๅๅๅจ
- ๐ข Commands
- ๐ ๏ธ Compatibility
- ๐ง Configuration
- ๐งฉ ItemsMatcherPlugin
- ๐ Management
- โฑ๏ธ ๆง่ฝ
- ๐ก Remote communication
- ๐ช Steam ่ฆชๅๅไบซ
- ๐ ไบคๆ







