Package: atomic-operator-runner
atomic-operator-runnerCurrent ReleaseFeaturesExecute a command string on a local, remote Windows, remote macOS and remote Linux systemsExecute a command for PowerShell, command-line (cmd) and bash/sh on any of the above systemsCan execute commands elevated on the supported systemsReturns a standard response object, as well as displays a formatter version to the console via loggingCopy a file from a local to remote hostResponse ObjectEvery execution of a command will return a standard object that includes details about the command execution. The full structure of this response is outlined below:{"environment":{"platform":"windows","hostname":"10.x.x.x","user":"user"},"command":"Get-Service\'","executor":"powershell","elevation_required":false,"start_timestamp":"2022-08-25T14:15:10.370468","end_timestamp":"2022-08-25T14:15:12.165563","return_code":1,"output":"","records":[{"type":null,"message_data":null,"source":null,"time_generated":null,"pid":null,"native_thread_id":null,"managed_thread_id":null,"extra":{"MESSAGE_TYPE":"266245","action":"None","activity":"Invoke-Expression","category":"17","command_definition":"None","command_name":"None","command_type":"None","command_visibility":"None","details_message":"None","exception":"System.Management.Automation.ParseException: At line:1 char:12\\r\\n+ Get-Service\'\\r\\n+            ~\\nThe string is missing the terminator: \'.\\r\\n   at System.Management.Automation.ScriptBlock.Create(Parser parser, String fileName, String fileContents)\\r\\n   at System.Management.Automation.ScriptBlock.Create(ExecutionContext context, String script)\\r\\n   at Microsoft.PowerShell.Commands.InvokeExpressionCommand.ProcessRecord()\\r\\n   at System.Management.Automation.CommandProcessor.ProcessRecord()","extended_info_present":"False","fq_error":"TerminatorExpectedAtEndOfString,Microsoft.PowerShell.Commands.InvokeExpressionCommand","invocation":"False","invocation_bound_parameters":"None","invocation_command_origin":"None","invocation_expecting_input":"None","invocation_history_id":"None","invocation_info":"System.Management.Automation.InvocationInfo","invocation_line":"None","invocation_name":"None","invocation_offset_in_line":"None","invocation_pipeline_iteration_info":"None","invocation_pipeline_length":"None","invocation_pipeline_position":"None","invocation_position_message":"None","invocation_script_line_number":"None","invocation_script_name":"None","invocation_unbound_arguments":"None","message":"ParserError: (:) [Invoke-Expression], ParseException","pipeline_iteration_info":"None","reason":"ParseException","script_stacktrace":"None","target_info":"None","target_name":"","target_object":"None","target_type":""}}]}InstallationYou can installatomic-operator-runnervia [pip] from [PyPI]:$pipinstallatomic-operator-runnerUsagePlease see the [Command-line Reference] for details.Usage:atomic-operator-runner[OPTIONS]COMMANDEXECUTORatomic-operator-runnerexecutespowershell,cmdorbash/shcommandsbothlocallyorremotelyusingSSHorWinRM.

Options:--versionShowtheversionandexit.--platform[windows|macos|linux]Platformtoruncommandson.[required]--hostnameTEXTRemotehostnametoruncommandson.--usernameTEXTUsernametoauthenticatetoremotehost.--passwordTEXTPasswordtoauthenticatetoremotehost.--ssh_key_pathPATHPathtoanSSHKeytoauthenticatetoremotehost.--private_key_stringTEXTPrivateSSHKeystringusedtoauthenticatetoremotehost.--verify_sslBOOLEANWhetherornottoverifySSLwhenauthenticating.--ssh_portINTEGERPortusedforSSHconnections.--ssh_timeoutINTEGERTimeoutusedforSSHconnections.--elevatedBOOLEANWhetherornottorunthecommandelevated.--helpShowthismessageandexit.ContributingContributions are very welcome.To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license.atomic-operator-runneris free and open source software.SecuritySecurity concerns are a top priority for us, please review ourSecurity Policy.