Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Purpose

Execute a specified script on a target host.

Syntax

Example

$> mettleci remote execute help
Usage: remote execute [options]
  Options:
  * -host
       URL of the server
    -passphrase
       SSH key pass phrase
    -password
       Password when connecting to remote server, required when -privateKey is
       not used
    -port
       SSH Port
       Default: 22
    -privateKey
       Private SSH key, required when -password is not used
  * -script
       Local script to execute on remote server
  * -username
       Username when connecting to remote server

$> mettleci remote execute \
   -host my-engine.my-org.com \
   -username myusername \
   -password mypassword \
   -script "config/deploy.sh"
MettleCI Command Line (build 128)
(C) 2018-2022 Data Migrators Pty Ltd
Connecting to my-engine.my-org.com on port 22

Status code = 0 
exit code = 0
$>

See Also


  • No labels