# Rancher api catalog with environment catalog

**URL:** <https://forums.suse.com/t/rancher-api-catalog-with-environment-catalog/11571>\
**Category:** Rancher 1.x\
**Created:** [August 23, 2018, 8:49am UTC](https://forums.suse.com/t/rancher-api-catalog-with-environment-catalog/11571 "2018-08-23T08:49:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forums.suse.com/u/fabrice)\
**Post date:** [August 23, 2018, 8:49am UTC](https://forums.suse.com/t/rancher-api-catalog-with-environment-catalog/11571/1 "2018-08-23T08:49:54Z")

</div>

Hello,

I’m able to install a stack with “rancher catalog install” only for a Global Catalog. I have a “Template version not found” error message  
And when I execute “rancher catalog ls”, only the catalog Global is displayed.

With the UI, I can add stack from Global and Environment catalog.  
Is there any constraints to use “rancher catalog install” with an Environment catalog ?

Rancher: v1.6.18  
Rancher CLI: v0.6.9

Thanks for your help,  
Fabrice

---

<div class="post-metadata">

**Author:** ![duhlenbrock](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@duhlenbrock](https://forums.suse.com/u/duhlenbrock)\
**Post date:** [August 27, 2018, 8:31am UTC](https://forums.suse.com/t/rancher-api-catalog-with-environment-catalog/11571/2 "2018-08-27T08:31:58Z")

</div>

Hello,  
I have the same issue. I use the following shell command (ansible) to add a new catalog to a new environment:

```
rancher --url {{ customer_rancher_url }} \
        --access-key {{ rancher_access_key }} \
        --secret-key {{ rancher_secret_key }} \
        --env {{ project_name }} \
        catalog install {{ catalog_url }} \
        --name {{ catalog_name }}

```

After execution I get the following error message:

Template version not found

I have no problem to add the catalog via the Rancher UI with the same data and information.

Rancher: 1.6.20  
Rancher CLI: 0.6.11

Regards  
Detlev
