---
title: Deploy with the CLI
url: "/learn/prompt-and-deploy/"
canonical_url: https://docs.blossom88.com/learn/prompt-and-deploy/
markdown_url: https://docs.blossom88.com/learn/prompt-and-deploy.md
summary: Deploy your repository from a terminal, yourself or with a coding agent.
categories:
- cli
- learn
---

# Deploy with the CLI

Deploy your own repository from a terminal and finish with its live URL. The
examples use a Sinatra App named `demo` with a web Service.



<aside class="docs-callout not-typography" data-tone="info">
  
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
  
  <div class="docs-callout-body">
    
    <div class="info-content">
      
<p>You can preview your App before setting up billing. When you’re ready for your
first Blossom Cloud deployment, <a href="/docs/billing/">activate Cloud</a>
once for your Organization.</p>

    </div>
  </div>
</aside>



## Install and log in

Install the CLI and sign in to the Account where you want to deploy.

    curl -fsSL https://cli.blossom88.com/install.sh | sh
    blossom login

For profiles and token-based login, see [Install and Log In](/learn/getting-started/install/).

## With a coding agent

Install the Blossom skill, then open your coding agent in the repository:

    blossom skill:install


> **Ask your AI agent:** Read this repository and propose the build settings, Services, variables,
> and any database it needs. Show me the Blossom Account, Location and plan.
> Wait for my approval, then deploy, follow the Activity and give me the App URL.



Your agent runs the commands below and waits for your approval before it
deploys.

## Run the commands yourself

1. [Choose your cloud and Location](/learn/getting-started/choose-your-cloud/).

       blossom location:list
       blossom profile:set --location location-100

2. [Create an App](/learn/getting-started/apps/).

       blossom app:create -d '{"app":{"name":"demo"}}'

3. [Set up its Environment](/learn/getting-started/environments/)
   with the source, a web Service, and variables. If your App needs
   PostgreSQL, [add a database](/learn/databases/) too.

       blossom environment:create -d '{"environment":{"name":"production","app_id":"app-100"}}'
       blossom git_repo:create --data git_repo.yml
       blossom service:create --data service.yml

4. [Deploy and follow the logs](/learn/getting-started/deploy/).

       blossom environment:deploy --id environment-100 --follow

Replace `location-100`, `app-100` and `environment-100` with the IDs each
command prints.

## Watch it go live

The deploy streams the build and release, then prints your App's URL beside
`App:`. Abbreviated:



    $ blossom environment:deploy --id environment-100 --follow
    Deploy requested for production (environment-100)
    Logs: blossom activity:logs --id activity-100 --follow
    2026-11-05 07:34:43 AM UTC === Build ===
    2026-11-05 07:34:43 AM UTC Build region: Falkenstein, Germany · x86 · builder-fsn1-x86.
    2026-11-05 07:37:31 AM UTC Preparing source.
    Building 6dcda40 with buildpack.
    …
    2026-11-05 07:38:41 AM UTC === Deploy ===
    2026-11-05 07:38:54 AM UTC Waiting for the new web container to join the load balancer.
    2026-11-05 07:40:03 AM UTC The new web container (container-100) is receiving traffic.
    2026-11-05 07:41:12 AM UTC Deployment completed successfully.
    
    App: https://demo-production-web-1a2b3c4d.g-x9y8.app.onblsm.dev



To see this deployment again, run
`blossom environment:activity --id environment-100`, or open **Activity** in
the Environment.

## What You Get

- Your repository running as the `demo` App's `production` Environment
- A public HTTPS URL for its web Service
- Every deploy and its logs, from the terminal or the web UI

Finished testing? [Clean up the resources you created](/learn/getting-started/cleanup/).
