Options
All
  • Public
  • Public/Protected
  • All
Menu

Module tools/purchase-server

Index

Executable

Executable

  • main(ns: NS): Promise<void>
  • Purchase new servers from the Terminal.

    export
    example

    Purchase a single server with given RAM.

    run /tools/purchase-server.js [ram] [host0]
    
    example

    Purchase multiple servers, each with given RAM.

    run /tools/purchase-server.js [ram] [host0] ... [hostn]
    

    Parameters

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Generated using TypeDoc