Socket
Socket
Sign inDemoInstall

@sap/cf-tools

Package Overview
Dependencies
12
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sap/cf-tools

Cloud Foundry API tools


Version published
Maintainers
1
Created

Changelog

Source

2.0.1 (2021-06-30)

Bug Fixes

  • change access to fs/promises lib (#113) (2dd4a36)

Readme

Source

GitHub package.json version CircleCI Coverage Status Language grade: JavaScript Commitizen friendly REUSE status dependentbot

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.

Prerequisite

from version v1.0.0 and above:

Make sure you have installed the CF CLI v7 tool in your environment.

below version v1.0.0:

Make sure you have installed the CF CLI v6 tool in your environment.

Examples of usage

Example 1

try {
	const result = await cfLogin("https://api.cf.....com", "user", "password");
	if (result === "OK") {
		// successful
	}
} catch (e) {
	// display or/and log error
}

Example 2

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 file.

FAQs

Last updated on 01 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc