port for network> port {flags} (start) (end)
start: The start port to scan (inclusive)end: The end port to scan (inclusive)| input | output | 
|---|---|
| nothing | int | 
get a free port between 3121 and 4000
>port31214000
3121
get a free port from system
>port
    Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
    https://www.nushell.sh/commands/docs/port.html