[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# kf bind-service\n\n### Name\n\n`kf bind-service` - Grant an App access to a service instance.\n\n### Synopsis\n\n```\nkf bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON] [--binding-name BINDING_NAME] [flags]\n```\n\n### Description\n\nBinding a service injects information about the service into the App via the VCAP_SERVICES environment variable.\n\n### Examples\n\n```\n kf bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n```\n\n### Flags\n\n`--async`\n: Do not wait for the action to complete on the server before returning.\n\n`-b, --binding-name=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: Name of the binding injected into the app, defaults to the service instance name.\n\n`-h, --help`\n: help for bind-service\n\n`-c, --parameters=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: JSON object or path to a JSON file containing configuration parameters (default \"{}\").\n\n`--timeout=`\u003cvar translate=\"no\"\u003eduration\u003c/var\u003e\n: Amount of time to wait for the operation to complete. Valid units are \"s\", \"m\", \"h\". (default 30m0s)\n\n### Inherited flags\n\nThese flags are inherited from parent commands.\n\n`--as=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: Username to impersonate for the operation.\n\n`--as-group=`\u003cvar translate=\"no\"\u003estrings\u003c/var\u003e\n: Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.\n\n`--config=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: Path to the Kf config file to use for CLI requests.\n\n`--kubeconfig=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: Path to the kubeconfig file to use for CLI requests.\n\n`--log-http`\n: Log HTTP requests to standard error.\n\n`--space=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n: Space to run the command against. This flag overrides the currently targeted Space."]]