What product/components do you use and which version/fix level are you on?
Cumulocity IOT
Is your question related to the free trial, or to a production (customer) instance?
Free Trial
What are you trying to achieve? Please describe it in detail.
Hi, I am trying to deploy the web app using c8ycli. Now I know that I can just create the build and deploy using the commands. When you run the c8ycli deploy command, it asks you for the credentials in another line. Is it possible to provide the credentials inline? like c8ycli deploy --app.tenant = someTenant --app.url = envURL --app.username = User --app.password = pass
so that it doesnt ask for the details and verify it from the inline and directly deploy it on the provided tenant.
c8ycli deploy --help
Usage: cli deploy [options] [appPaths...]
Deploys apps from the specified paths
Options:
-T, --tenant [tenant] Tenant
-U, --user [user name] Username
-P, --password [password] Password
-s, --silent does not prompt for additional inputs
--tag [tag] A custom tag which will be added to the package version
-h, --help output usage information
So yes you can specify a local path to the built application using appPaths
Can you please provide an example for the same like npx c8ycli deploy -u {{C8Y_Instance}} -U {{username}} -P {{password}} C:/app/projectName
I tried this but it isn’t working also tried with --app.contextPath but no luck
So is there any other prefix for the path or like how can I mention the path of my project root folder.
You can add the context path to the command without specifying a command option. For example, if your application has the context path my-application, you add it to the end of your command: