# Deploy to bitrise.io from CLI

**URL:** https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370
**Category:** Question & Answer
**Tags:** step
**Created:** [July 27, 2017, 3:48pm UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370 "2017-07-27T15:48:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![a.circus](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/a.circus/32/718_2.png) [@a.circus](https://discuss.bitrise.io/u/a.circus)
#### Post date: [July 27, 2017, 3:48pm UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370/1 "2017-07-27T15:48:50Z")

</div>

I have an android app and I use Bitrise CLI for Continuous Integration.  
I have a few steps (test, sign, deploy etc) but the step deploy to [bitrise.io](http://bitrise.io) is failing because of missing Build URL…I don’t know what link to assign to the **BITRISE\_BUILD\_URL** env variable. Could someone guide me where I can find the Build url? (I assume this link is not generated after starting a build from within the [Bitrise.io](http://Bitrise.io) platform itself…this would make deploy from CLI not supported)

I want this step to work because it allows me to notify the testers, friends, etc with the build via their email.

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [July 27, 2017, 4:01pm UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370/2 "2017-07-27T16:01:48Z")

</div>

Hi @a.circus,

The Deploy to [Bitrise.io](http://Bitrise.io) step does require [Bitrise.io](http://Bitrise.io). You can’t run it outside of the [Bitrise.io](http://Bitrise.io) environment, because it uses the [Bitrise.io](http://Bitrise.io) Artifact deploy API (that’s why the `$BITRISE_BUILD_URL` env var is required, and that env var is set by [bitrise.io](http://bitrise.io) when the build starts).

---

<div class="post-metadata">

### Author: ![a.circus](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/a.circus/32/718_2.png) [@a.circus](https://discuss.bitrise.io/u/a.circus)
#### Post date: [July 27, 2017, 4:07pm UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370/3 "2017-07-27T16:07:58Z")

</div>

Hi @viktorbenei,

Thanks for the quick answer. I understand now…That means I must use [Bitrise.io](http://Bitrise.io) or find another step that allows me to send email with attachments.

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [July 27, 2017, 4:10pm UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370/4 "2017-07-27T16:10:05Z")

</div>

Correct, it means that specific step can only work with the [bitrise.io](http://bitrise.io) API.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)
#### Post date: [May 21, 2018, 9:05am UTC](https://discuss.bitrise.io/t/deploy-to-bitrise-io-from-cli/2370/5 "2018-05-21T09:05:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
