---
title: Kargo CLI Namespace Error When Creating a Warehouse
description: Understanding the namespace requirement for Kargo projects
---

[Skip to content](https://support.akuity.io/kb/kargo-cli-namespace-error-when-creating-a-warehouse#main-content)

English

Show submenu for translations

[![Akuity-Logo-Color-1](https://support.akuity.io/hubfs/Akuity-Logo-Color-1.svg)](https://akuity.io/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://support.akuity.io/kb?hsLang=en)
2. [Kargo](https://support.akuity.io/kb/kargo?hsLang=en)

# Kargo CLI Namespace Error When Creating a Warehouse

## Understanding the namespace requirement for Kargo projects

When creating a **Warehouse** using the **Kargo CLI**, you may encounter the following error:

`kargo create -f core/kargo/dupapp/warehouse.yaml Error: create resource: not_found: namespaces "my-app" not found`

### **Cause of the Issue**

- Kargo **projects** are tightly coupled with **namespaces**.
- The **namespace** where the Warehouse is created **must match the project name**.

### **Solution**

1. **Verify that the Project name matches the Namespace:**  
   If your project is named **`my-app`**, ensure your Warehouse definition refers to the same namespace.
2. **Create the Warehouse again:**
   
   `kargo create -f core/kargo/dupapp/warehouse.yaml`

### **Key Takeaway**

For Kargo, the **Project name and the Namespace must be the same**. If you’re getting a "namespace not found" error, manually create the namespace first before applying resources.

- [Argo CD](https://support.akuity.io/kb/argo-cd?hsLang=en#main-content)

    - [App of Apps](https://support.akuity.io/kb/argo-cd?hsLang=en#app-of-apps)
    - [Configuration](https://support.akuity.io/kb/argo-cd?hsLang=en#configuration)
    - [ApplicationSet](https://support.akuity.io/kb/argo-cd?hsLang=en#applicationset)
- [Akuity Platform](https://support.akuity.io/kb/akuity-platform?hsLang=en#main-content)

    - [Audit Logs](https://support.akuity.io/kb/akuity-platform?hsLang=en#audit-logs)
    - [IP Allow Lists](https://support.akuity.io/kb/akuity-platform?hsLang=en#ip-allow-lists)
    - [Terraform](https://support.akuity.io/kb/akuity-platform?hsLang=en#terraform)
    - [Configuration](https://support.akuity.io/kb/akuity-platform?hsLang=en#configuration)
    - [Agents](https://support.akuity.io/kb/akuity-platform?hsLang=en#agents)
    - [Troubleshooting](https://support.akuity.io/kb/akuity-platform?hsLang=en#troubleshooting)
- [Kargo](https://support.akuity.io/kb/kargo?hsLang=en#main-content)

    - [Configuration](https://support.akuity.io/kb/kargo?hsLang=en#configuration)
    - [Warehouses](https://support.akuity.io/kb/kargo?hsLang=en#warehouses)
    - [Metrics](https://support.akuity.io/kb/kargo?hsLang=en#metrics)
- [Self-hosted Akuity Platform](https://support.akuity.io/kb/self-hosted-akuity-platform?hsLang=en#main-content)

    - [Configuration](https://support.akuity.io/kb/self-hosted-akuity-platform?hsLang=en#configuration)

[![Akuity-Logo-Color-1](https://support.akuity.io/hubfs/Akuity-Logo-Color-1.svg "Akuity-Logo-Color-1")](https://akuity.io/)

Akuity.io Help Center

Copyright © 2025, Akuity Inc.