I have installed the IBM® Bluemix® and Cloud Foundry command line interfaces.
However, when I try to use the Bluemix command in bash, it states that the command is not found.
Is there any thing to do before using the command?
If you installed the Bluemix CLI and you get a "command not found" when you type the command bluemix, that would indicate that you are encountering path issues.
Potential steps to resolve this issue are:
Closing and re-opening your terminal
Reinstalling the plugin
Finding where you installed the plugin and launching the binary from the terminal (and optionally creating an alias)
Note: The Bluemix CLI command line interface is not supported by Cygwin. Use the Bluemix CLI in a command line window other than the Cygwin command line window.
After getting the CLI installed, you will need to target the correct endpoint using bx api or cf api.
Finally you will need to login using bx login or cf login.
Related
I decided to host my script on the IBM Cloud service. Haven't used this service before.
I am using Windows for converging. I did everything step by step as described on the site.
Logged into my IBM Cloud account and selected the API endpoint.
$ ibmcloud login
Targeting Cloud Foundry organization and space:
$ ibmcloud target --cf
But in the third step. When needed from the get-start-python directory submit my app to IBM Cloud i am getting error when running command:
$ ibmcloud cf push
error:
$ ibmcloud cf push
Invoking 'cf push'...
FAILED
The Cloud Foundry CLI isn't installed in the IBM Cloud CLI. Use 'D:\work\IBM_Cloud_CLI\ibmcloud.exe cf install' to install it.
I use OS Windows 7 and through the "ibmcloud" console it starts, but I can't figure out what I haven't installed?
With recent versions of the IBM Cloud CLI (command line interface) the Cloud Foundry CLI is no longer bundled. It needs to be installed before first use.
The command is: ibmcloud cf install
This is from your question:
$ ibmcloud cf push
Invoking 'cf push'...
FAILED
The Cloud Foundry CLI isn't installed in the IBM Cloud CLI. Use 'D:\work\IBM_Cloud_CLI\ibmcloud.exe cf install' to install it.
Do you see above that it instructs you to invoke the install command...? Go ahead :)
Good afternoon,
I'm new to IBM CLOUD and I wanted to know what they meant "from get-started directory push your application to the cloud"?
Where are you supposed to type "ibmcloud cf push"?
From the command line, Powershell on Windows, IBM CLOUDSHELL? I'm not sure what they're referring to?
Could anyone help me? Thank you.ibm-microprofile-image
You need to first install the IBM Cloud CLI locally, then you'll be able to run the 'ibmcloud' commands:
https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started
When I try to install google cloud SDK, I was getting the following error:
ERROR:
(gcloud.components.update) Failed to fetch component listing from
server. Check your network settings and try again. This will install
all the core command line tools necessary for working with the Google
Cloud Platform. Failed to install.
After reinstalling python (v3.7.0), I added the path and also added CLOUDSDK_PYTHON environment variable to make sure. Now when I attempt the installation, the installation simply hangs:
If I attempt the installation trough terminal by executing install.bat, it also gets stuck after requesting to send diagnostics to google:
Welcome to the Google Cloud SDK!
Active code page: 65001
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is
handled in accordance with our privacy policy
<https://policies.google.com/privacy>. You may choose to opt in this
collection now (by choosing 'Y' at the below prompt), or at any time in the
future by running the following command:
gcloud config set disable_usage_reporting false
Do you want to help improve the Google Cloud SDK (y/N)? n
Nothing gets printed after that.
it seems that the "(gcloud.components.update) Failed to fetch component listing from server" error might be caused by some proxies or antivirus in your environment, I'd recommend you to try a clean installation in a vm or using another network.
Also, I was able to find soem similar errors for this on issue tracker and the team gave a soltion at comment10, also, as you can see on the issue tracker, sometimes this behavior is because the Python SDK is installed on default "Program Files" location, you could give it a try by changing the location of the python SDK
I am trying to install google cloud sdk on my windows 10 machine.
the installer stops at below error. there is no way i dont have the permission on the directory as i just created the directory for the sdk.
Output folder: C:\dev\gcloud
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\dev\gcloud\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
Your current Cloud SDK version is: 207.0.0
Installing components from version: 207.0.0
ERROR: (gcloud.components.update) Access is denied: [C:\dev\gcloud\google-cloud-sdk.staging\.install\.backup]
Ensure you have the permissions to access the file and that the file is not in use.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
Failed to install.
First of all, I would recommend you to check and make sure you are running the install as administrator as you have receiving a “Access is denied” error.
Running a program 'as Administrator' (as in on the right-click menu) and doing a RunAs Administrator are not the same thing:
Running a program 'as Administrator' means that the program still runs under the context of your user account (i.e. the person invoking the program) but using a modified access token that includes membership of the Administrators group. A process started in this way would show as being owned by you in Task Manager.
Using RunAs with the Administrator account really does try to invoke the program under the Administrator account. A process started in this way would show as being owned by Administrator in the Task Manager.
Additionally, you can follow this article more specifically “1. Run a program as administrator from the Start Menu (in Windows 10 and Windows 7) or Start Screen (in Windows 8.1)” point which will help you to run programs as administrator in Windows 10.
I am following the IBM instructions from this link in order to deploy my business network to my IBM Bluemix blockchain service.
Anyway, I managed to setup connection.json file, but when I try to get certificates from "registrar" issuing this command:
composer identity request -p bmx-hlfv1 -i admin -s 123
, I get the following error:
Unknown arguments: p, i, s
I am using composer-cli version 0.10.0, and it seem that "request" part of command is not supported any more.
I see "issue" command, but this is not what I need.
Can anyone help, please?
composer identity issue was not in version 0.10.0 of hyperledger composer. Suggest you update your version of composer installed to 0.12.2 which is the latest version as of now.
Information about updating can be found at
https://hyperledger.github.io/composer/managing/updating-composer.html