Skip to main content

conveyor project deploy

Deploy a project

Synopsis

Deploy a project to an environment. You first have to build the project before it can be deployed.

conveyor project deploy [flags]

Examples

To deploy a project to environment dev, you can use two approaches, namely: by build id or by git hash. The simplest way is to deploy using the build id.
If you execute the following command, Conveyor will look up and use the latest build id of your project:

$ conveyor project deploy --env dev

If you want to specify the build id explicitly, you can use the following command:

$ conveyor project deploy --env dev --build <conveyor-uuid>

In CI this is not practical as the build id needs to be passed from the build step to the deploy step, which is annoying.
For this reason we support the deployment of projects based on a git commit hash.
Use the following command for deploying based on a git commit hash:

$ conveyor project deploy --env dev --git-hash <git-hash>

Options

      --build string      The id of the build to deploy
--env string The environment to deploy to
--git-hash string The git commit hash linked to the build that you want to deploy (e.g. git rev-parse HEAD). If there are multiple builds for the same git hash, we pick the last one.
-h, --help help for deploy
--id string The id of the project
--name string The name of the project
--path string The location of the project (default ".")
-w, --wait Set to wait for the deployment to succeed

Options inherited from parent commands

      --debug                        Show debug output
--no-browser NO_BROWSER=true Do not automatically open a browser at login instead print the url to the command line. You can also use the environment variable NO_BROWSER=true.
-o, --output string Change the output. Valid options are table or json (default "table")
--quiet QUIET=true Quiet down the output. You can also use the environment variable QUIET=true.

See also