LibTmux.Stop-TmuxServer
Stop a native tmux server without emitting an object.
Source and package
- Qualified name
-
LibTmux\ Stop-Tmux Server - Declared in
LibTmux- Package
- LibTmux
- Source
- src/LibTmux.PowerShell/StopTmuxServerCommand.cs
- Stop-TmuxServer [-Server] <Lib
Tmux > [-What.Server If ] [-Confirm] [<CommonParameters >] -
Description
Stop the tmux server that the supplied native
LibTmux.Serverhandle names, with the tmux kill-server command. Every session, window and pane on that server is destroyed and its daemon exits. Use it to end a private server you started, such as one named byNew-TmuxServeron a socket of its own.A server that is already gone is the requested outcome, so an absent daemon succeeds and nothing is stopped. This high-impact operation requests confirmation by default.
WhatIfperforms no tmux I/O. Cancellation does not restore a stopped server.Notes
Failures use
Tmux.ServerStopFailedand retain the original core exception, its dispatch information and the failed server. The stop is never retried.Session, window and pane handles read from the stopped server no longer name anything.Command details
- Command type
cmdlet- Confirmation
- Supports
-WhatIfand-Confirm; confirm impact: High. - Positional binding
- Enabled.
- Pipeline inputs
LibTmux.Server: A nativeLibTmux.Servernaming the endpoint to stop.- Outputs
System.Void
- Parameters
-
-
The native server to stop.
Createit withNew-TmuxServer, or select it withGet-TmuxServer, on the endpoint you intend to end.- Required
- Yes
- Position
- 0
- Pipeline input
- By value
- Validation
ValidateNotNull()
-
-WhatIf(System.Management ).Automation .Switch Parameter Runs the command in a mode that only reports what would happen without performing the actions.
- Required
- No
- Position
- Named
- Pipeline input
- No
- Switch
- Yes
- Aliases
wi
-
-Confirm(System.Management ).Automation .Switch Parameter Prompts you for confirmation before running the cmdlet.
- Required
- No
- Position
- Named
- Pipeline input
- No
- Switch
- Yes
- Aliases
cf
Common parameters 12
PowerShell supplies these parameters. See common parameter behavior for their effects.
-
-Verbose(System.Management ).Automation .Switch Parameter Display verbose messages produced by this command.
Aliases:vbMicrosoft Learn reference -
-Debug(System.Management ).Automation .Switch Parameter Display debug messages produced by this command.
Aliases:dbMicrosoft Learn reference -
-ErrorAction(System.Management ).Automation .Action Preference Choose how this command responds to non-terminating errors.
Aliases:eaMicrosoft Learn reference -
-WarningAction(System.Management ).Automation .Action Preference Choose how this command responds to warning messages.
Aliases:waMicrosoft Learn reference -
-InformationAction(System.Management ).Automation .Action Preference Choose how this command handles information messages.
Aliases:infaMicrosoft Learn reference -
-ProgressAction(System.Management ).Automation .Action Preference Choose how this command handles progress updates.
Aliases:progaMicrosoft Learn reference -
-ErrorVariable(System.String )Store the command's error records in the named variable.
Aliases:evMicrosoft Learn reference -
-WarningVariable(System.String )Store the command's warning records in the named variable.
Aliases:wvMicrosoft Learn reference -
-InformationVariable(System.String )Store the command's information records in the named variable.
Aliases:ivMicrosoft Learn reference -
Save output in the named variable while passing it down the pipeline.
Aliases:ovMicrosoft Learn reference -
Buffer output before passing it to the next pipeline command.
Aliases:obMicrosoft Learn reference -
-PipelineVariable(System.String )Make the most recent output object available through a named variable within the pipeline.
Aliases:pvMicrosoft Learn reference
-
- Returns
-
None: No success objects are emitted. An empty input pipeline performs no work.
Examples
Example 1 Stop the previously created
$server, a private endpoint you own. This example explicitly suppresses confirmation; omittingConfirmuses the normal high-impact confirmation behavior. View sourceTerminal window $server | LibTmux\Stop-TmuxServer -Confirm:$false
Recorded calls
source callsThe PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Stop-TmuxServer.
Guides
task materialPages that discuss Stop-TmuxServer.