Skip to content
Browse files

documented exec

  • Loading branch information...
1 parent ac71ce0 commit e76f7e586411e2a34e268d8b16e820f3761d6d80 @substack committed Apr 12, 2012
Showing with 33 additions and 0 deletions.
  1. +33 −0 doc/exec.markdown
33 doc/exec.markdown
@@ -0,0 +1,33 @@
+fleet-exec(1) -- Run commands on drones.
+ fleet exec [<options>] -- [<command>...]
+Execute `<command>` on a drone and print the output of the command to the local
+Unlike `fleet spawn`, this command does not restart the process when
+it exits.
+Your spawned process will get the `$REPO` name, `$COMMIT` hash, `$DRONE_ID`, and
+`$PROCESS_ID` as environment variables from propagit.
+* drone - Specify a drone to connect to by its drone ID. You can specify `'*'`
+ to exec a command on all the drones.
+* env.`<name>` - Set environment variables for the commands.
+* commit - Spawn the command on a specific deployed commit.
+ Defaults to the latest commit.
+* repo - Execute the command under this repo name.
+ Defaults to the closest directory name with a `.git/` in it.
+If you haven't set a remote with `fleet remote`, you'll need to specify these
+* hub - location of the hub as a "host:port" string
+* secret - optional passphrase to connect to the hub

0 comments on commit e76f7e5

Please sign in to comment.
Something went wrong with that request. Please try again.