---
title: Deploy Invoice Ninja with AI on Blossom
url: "/deploy/invoice-ninja/"
canonical_url: https://blossom88.com/deploy/invoice-ninja/
markdown_url: https://blossom88.com/deploy/invoice-ninja.md
summary: Deploy Invoice Ninja with AI on Blossom. Set up your own invoicing workspace
  and generate a sample PDF.
categories:
- deployment
- business
stack:
- PHP
- Laravel
- MySQL
- Redis
---

# Deploy Invoice Ninja with AI on Blossom

[Invoice Ninja](https://invoiceninja.com/) manages clients, quotes, and
invoices. The self-hosted edition serves your own business under the
[Elastic License 2.0](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/LICENSE),
which restricts offering substantial app functionality as a hosted service
to third parties.

![A sample Invoice Ninja PDF for a workshop.](/deploy/assets/images/invoice-ninja/invoice.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Invoice Ninja on Blossom and help me create a sample invoice PDF.
>
> Follow this guide: https://blossom88.com/deploy/invoice-ninja/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Create Your First Invoice

Add a sample client and line item, save a draft, then download the PDF. Set
up mail and decide how clients will access the portal before sending invoices.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Use the [official Octane image](https://github.com/invoiceninja/dockerfiles/tree/octane),
managed MySQL and Redis, and an `/app/storage` Volume. Map the managed
connection links to the image's `DB_*` and `REDIS_*` variables. Keep `APP_KEY`
stable across releases. Start with Blossom Account access and SnapPDF for
local PDF generation.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data mysql.yml
    blossom cache_instance:create --data redis.yml
    blossom environment_link:create --data mysql-link.yml
    blossom environment_link:create --data redis-link.yml
    blossom service:create --data service.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow

</details>

## What You Get

- An Invoice Ninja workspace for your business
- Managed MySQL for invoices and client records
- A Persistent Service Volume for documents and uploads
