# cloud-foundry-tools-api **Repository Path**: mirrors_SAP/cloud-foundry-tools-api ## Basic Information - **Project Name**: cloud-foundry-tools-api - **Description**: This package provides a set of APIs for easy application development with Cloud Foundry. You can use these APIs to manage apps, service instances, orgs, spaces, and users in your environment. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![GitHub package.json version](https://img.shields.io/github/package-json/v/SAP/cloud-foundry-tools-api) [![CircleCI](https://circleci.com/gh/SAP/cloud-foundry-tools-api.svg?style=svg)](https://circleci.com/gh/SAP/cloud-foundry-tools-api) [![Coverage Status](https://coveralls.io/repos/github/SAP/cloud-foundry-tools-api/badge.svg?branch=master)](https://coveralls.io/github/SAP/cloud-foundry-tools-api?branch=master) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![REUSE status](https://api.reuse.software/badge/github.com/SAP/cloud-foundry-tools-api)](https://api.reuse.software/info/github.com/SAP/cloud-foundry-tools-api) # Overview This package provides a set of APIs to help you develop applications in Cloud Foundry. You can use these APIs to manage apps, service instances, orgs, spaces, and users in your environment. Mostly, this is a wrapper of the CF command line client, which runs a particular command and parses the output to the suitable JSON file. If an error or failure occurs, the runtime exception throws with relevant problem information. ## API Reference Guide [API guide](https://sap.github.io/cloud-foundry-tools-api) ## Prerequisite Make sure you have installed the CF CLI [v8](https://github.com/cloudfoundry/cli#downloads) tool in your environment. ## Examples of usage Example 1 ```typescript try { const result = await cfLogin("https://api.cf.....com", "user", "password"); if (result === "OK") { // successful } } catch (e) { // display or/and log error } ``` Example 2 ```typescript try { const spaces = await cfGetAvailableSpaces("myOrg"); for (const space of spaces) { console.log("Space label is " + space.label + " guid is " + space.guid); } } catch (e) { // display or/and log error } ``` ## Contributing Contributing information can be found in the [CONTRIBUTING.md](CONTRIBUTING.md) file.