|
| 1 | +--- |
| 2 | + |
| 3 | +copyright: |
| 4 | + years: 2019 |
| 5 | +lastupdated: "2019-04-03" |
| 6 | + |
| 7 | +keywords: cli, cli faq, debug cli, cli help, ibmcloud cli help, ibmcloud help |
| 8 | + |
| 9 | +subcollection: cloud-cli |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +# Frequently Asked Questions (FAQ) |
| 14 | +{: #ibm-cli-faq} |
| 15 | + |
| 16 | +## What is the file structure for {{site.data.keyword.cloud_notm}} applications? |
| 17 | +{: #cli-file-structure} |
| 18 | + |
| 19 | +Applications that are created or enabled from the CLI come with pre-configured settings encapsulated in the `cli-config.yml` file. The `cli-config.yml` contains default entries that are used by the commands of the CLI that can be overridden by values that are passed through the command line. |
| 20 | + |
| 21 | +Applications that have deployed to a DevOps Toolchain may also contain files such as `toolchain.yml` and `pipeline.yml`. Applications that are being manually deployed can contain a `manifest.yml` and Helm chart files (for deployment to Cloud Foundry or Kubernetes, for example). |
| 22 | + |
| 23 | +## How are local containers used? |
| 24 | +{: #cli-faq-containers} |
| 25 | + |
| 26 | +The {{site.data.keyword.dev_cli_long}} CLI plug-in uses two containers to facilitate building and testing your application. The first is the tools container, which contains the necessary utilities to build and test your application. The `Dockerfile` for this container is defined by the [`dockerfile-tools`](/docs/cli/idt?topic=cloud-cli-idt-cli#command-parameters) parameter. You might think of it as a development container, as it contains the tools that are normally used for development of a particular runtime. |
| 27 | + |
| 28 | +The second container is the run container, which closely mimics the actual runtime environment of your app once that it is deployed to the cloud. This container is in a form that is suitable to be deployed for use, for example, in {{site.data.keyword.cloud_notm}}. As a result, an entry point is defined that starts your application. When you select to run your application through the {{site.data.keyword.dev_cli_long}} CLI Plug-in CLI, it uses this container. The `Dockerfile` for this container is defined by the [`dockerfile-run`](/docs/cli/idt?topic=cloud-cli-idt-cli#run) parameter. |
| 29 | + |
| 30 | +# How do I deploy existing code? |
| 31 | +To deploy an existing codebase, follow these steps to enable your app[enable your app](/docs/apps?topic=creating-apps-create-deploy-app-cli#byoc-cli). |
| 32 | + |
| 33 | +## Reference blogs, videos, and documentation |
| 34 | +{: #cli-faq-reference} |
| 35 | + |
| 36 | +### Blogs |
| 37 | +{: #cli-blogs} |
| 38 | + |
| 39 | +- [Deploying to {{site.data.keyword.cloud_notm}} Private with {{site.data.keyword.dev_cli_long}} CLI Plug-in](https://www.ibm.com/blogs/bluemix/2018/05/deploying-to-ibm-cloud-private-2-1-0-2-with-ibm-cloud-developer-tools-cli/) |
| 40 | +- [Deploying to Kubernetes on {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.dev_cli_long}} CLI Plug-in](https://www.ibm.com/blogs/bluemix/2017/09/deploying-kubernetes-ibm-cloud-ibm-cloud-developer-tools-cli/) |
| 41 | +- [Enable existing projects for {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.dev_cli_long}} CLI Plug-in](https://www.ibm.com/blogs/bluemix/2017/09/enable-existing-projects-ibm-cloud-ibm-cloud-developer-tools-cli/) |
| 42 | + |
| 43 | +### Videos |
| 44 | +{: #cli-videos} |
| 45 | + |
| 46 | +- [How to deploy to Kubernetes on {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.dev_cli_long}} CLI Plug-in](https://youtu.be/mh_XBn_eV_8) |
| 47 | +- [How to deploy existing projects to {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.dev_cli_long}} CLI Plug-in](https://youtu.be/-NP5ZEZE1dY) |
| 48 | +- [Create, debug, and deploy a Node.js app with the {{site.data.keyword.dev_cli_long}} CLI Plug-in and VSCode](https://youtu.be/z-ByHuI41dU) |
| 49 | + |
| 50 | +### Documentation and tutorials |
| 51 | +- [Continuous Deployment to Kubernetes](/docs/tutorials?topic=solution-tutorials-continuous-deployment-to-kubernetes) |
| 52 | +- [Troubleshooting for {{site.data.keyword.dev_cli_long}} CLI Plug-in](/docs/cli?topic=cloud-cli-troubleshoot) |
| 53 | +- [{{site.data.keyword.dev_cli_long}} CLI Plug-in (ibmcloud dev) commands](/docs/cli/idt?topic=cloud-cli-idt-cli) |
| 54 | +- [Local application debugging for the {{site.data.keyword.dev_cli_long}} CLI Plug-in](/docs/cli/idt?topic=cloud-cli-local-debug) |
| 55 | + |
| 56 | +**To report issues or provide feedback you can use the [{{site.data.keyword.cloud_notm}} Tech's Slack - #developer-tools channel](https://ibm-cloud-tech.slack.com) - Request team access [here](https://slack-invite-ibm-cloud-tech.mybluemix.net/).** |
0 commit comments