← Back to Engine Room
Bobserverlesscode engineAI

From Laptop to Cloud in Minutes: Deploying with Bob and Code Engine

Jul 2, 2026uwefassnacht, jeremiaswerner

What if deploying your application to the cloud was as simple as having a conversation? No memorizing commands, no context-switching to documentation, just you describing what you want and your AI assistant making it happen.

That’s exactly what happens when you combine IBM Cloud Code Engine with Bob, your AI-powered deployment partner. Code Engine already makes serverless deployment straightforward, but Bob takes it to the next level by turning deployment into a natural conversation.

In this tutorial, you’ll learn how to deploy a simple static website to Code Engine using Bob—from generating the code to seeing it live in the cloud. Let’s get started!

What You’ll Build

By the end of this tutorial, you’ll have:

Time to complete: 15-20 minutes

Prerequisites

Before we begin, make sure you have:

  1. An IBM Cloud account - Sign up for free if you don’t have one
  2. Bob 2.0 (or higher) installed - Your AI coding assistant (Learn more about Bob)
  3. IBM Cloud CLI - Installation guide
  4. Code Engine CLI plugin - Install with: ibmcloud plugin install code-engine

Don’t worry if you’re new to Code Engine—Bob will guide you through everything!

Step 1: Install the Code Engine Skill for Bob

Bob’s Code Engine expertise comes from a dedicated skill that you install once. This skill gives Bob deep knowledge of IBM Cloud Code Engine deployments, configurations, and troubleshooting.

1.1 Open Bob in an existing or new folder

Open Bob in your development environment (VS Code, terminal, or wherever you have Bob configured). Either open an existing project folder or create a new one for Bob to work in.

1.2 Install the Code Engine Skill

In Bob, type the following command:

Install the code-engine-specialist skill in this workspace using the following command:

npx skills add github:IBM/CodeEngine --skill code-engine-specialist -y 2>&1 || true

Bob will:

Note: If you want to install the skill globally, make sure you have enabled Allow outside workspace tools (In the IBM Bob chat -> Settings (icon) -> Chat -> Allow outside workspace tool requests)

1.3 Verify the Skill is Active

Once installed, confirm the skill is available by asking Bob:

Do you have the code-engine-specialist skill installed?

Bob will confirm the skill is active and ready to use.

Step 2: Authenticate with IBM Cloud

Before deploying anything, you need to authenticate with IBM Cloud.

2.1 Log in to IBM Cloud

Open your terminal and run:

ibmcloud login --sso

Or if you have an API key:

ibmcloud login --apikey YOUR_API_KEY

Follow the prompts to complete authentication.

2.2 Target a Resource Group

IBM Cloud organises resources into resource groups. Every IBM Cloud account comes with a Default resource group, so that’s a safe choice if you haven’t created any others.

Run the following command to target it:

ibmcloud target -g Default

You should see output similar to:

Targeted resource group Default

Tip: If your account uses a different resource group, replace Default with its name. You can list all available resource groups with ibmcloud resource groups.

2.3 Verify Authentication with Bob

Now let’s have Bob verify your authentication. Tell Bob:

Check my IBM Cloud authentication

Bob will run the verification and show you something like:

🔐 Authentication Status Check
---
✅ Authenticated as: your-email@example.com
    Account: Your IBM Cloud Account
    Region: us-south
    Resource Group: Default

Ready to proceed with Code Engine deployment!

If you see any errors, Bob will guide you through fixing them.

Step 3: Generate a Hello World Website

Now for the fun part—let’s have Bob create a simple static website for us!

3.1 Ask Bob to Create the Website

Tell Bob:

Create a simple hello world static website with HTML, CSS, and JavaScript

3.2 Review What Bob Creates

Bob will generate three files:

3.3 Test Locally (Optional)

You can test the website locally by opening index.html in your browser. The button should display random messages when clicked.

No Dockerfile needed: When you ask Bob to deploy, it will automatically detect that this is a static website and create the appropriate Dockerfile — using nginx on port 8080 — before building and deploying the container.

Step 4: Deploy to Code Engine with Bob

Now comes the exciting part—deploying to the cloud!

4.1 Start the Deployment

Make sure you’re in the directory with your website files, then tell Bob:

Deploy this website to Code Engine

4.2 Follow Bob’s Guided Workflow

The deployment is conversational — Bob will ask you a series of questions to configure the deployment correctly. The exact wording of Bob’s responses will vary, but expect Bob to:

  1. Verify your IBM Cloud authentication and confirm the active region
  2. Analyse your files — detecting that this is a static website and auto-generating a Dockerfile (nginx on port 8080) since you don’t have one
  3. Ask for a name for your application (e.g. hello-world-site)
  4. Ask about expected traffic — choose Low for a demo site so it scales to zero when idle
  5. Confirm resource settings — Bob will suggest sensible CPU and memory defaults for a static site

Answer each question as it comes. Bob handles the rest.

Note: Bob’s output is generated dynamically — the exact phrasing, formatting, and follow-up questions you see may differ from what’s shown here. That’s normal; just follow the conversation.

4.3 Watch the Deployment and Visit Your Site

Once you’ve answered Bob’s questions, it will build the container, push it to IBM Container Registry, and deploy it to Code Engine — reporting progress as it goes. When finished, Bob will give you a live URL.

Note: Some steps (e.g. project creation or application deployment) might take a minute or two … be patient and follow the conversation

Open that URL in your browser to see your Hello World site up and running.

4.4 View Application Details in IBM Cloud (Optional)

If you’d like to explore the full application configuration, logs, and scaling settings in the IBM Cloud UI, ask Bob:

Give me a link to the code engine application details in the IBM Cloud UI

Bob will give you a direct link to the application’s detail page in the IBM Cloud user interface.

Step 5: Understanding What Just Happened

Let’s break down what Bob did for you:

5.1 Behind the Scenes

Bob executed several Code Engine commands on your behalf:

  1. Created a Code Engine project (if you didn’t have one)
  2. Built your container image from the Dockerfile
  3. Pushed the image to IBM Container Registry
  4. Created a Code Engine application with your specified configuration
  5. Deployed the container and configured auto-scaling
  6. Set up health checks to ensure your app stays healthy
  7. Generated a public URL for your website

5.2 What You Get with Code Engine

Your website now has:

5.3 Cost Efficiency

Because you chose “Low traffic” with scale-to-zero:

Step 6: Making Changes and Redeploying

Want to update your website? Bob makes it easy!

6.1 Make a Change

Edit your index.html file. For example, change the heading:

<h1>🚀 Hello World - Version 2!</h1>

6.2 Redeploy with Bob

Simply tell Bob:

Redeploy my website to Code Engine

Bob will:

The whole process takes just a few minutes!

Step 7: Exploring More with Bob

Now that you’ve deployed your first application, try asking Bob:

View Your Application Status

Show me the status of my Code Engine application

Check the Logs

Show me the logs for hello-world-site

Scale Your Application

I am expecting more load. Can you increase the resources and number of instances?

Bob may suggests different options, pick one and observe how Bob scales the application.

Add Environment Variables

Add an environment variable API_KEY to my application

Set Up a Custom Domain

How do I configure a custom domain for my Code Engine app?

Bob will guide you through each of these tasks conversationally!

Delete the application

Delete the application

What Makes This Special

Let’s reflect on what you just experienced:

It Was Conversational

You didn’t need to memorize any ibmcloud ce commands. You just described what you wanted, and Bob handled the technical details.

It Was Contextual

Bob analyzed your files, understood you had a static website, and configured everything appropriately (nginx, port 8080, resource allocation).

It Was Educational

Throughout the process, Bob explained what was happening and why. You learned about Code Engine concepts naturally.

It Was Fast

From zero to deployed website in about 15 minutes, including the time to generate the code!

Next Steps: Where to Go From Here

Now that you’ve deployed your first application with Bob and Code Engine, here are some ideas for what to try next:

1. Deploy a Backend API

Create a Node.js Express API or Python Flask application and deploy it the same way.

Try this: Tell Bob:

Create a simple REST API with Node.js and Express, then deploy it to Code Engine

2. Deploy a Multi-Service Application

Build an application with a frontend and backend, and deploy both to Code Engine.

3. Set Up CI/CD

Configure automatic deployments when you push to GitHub.

Ask Bob:

How do I set up automatic deployments from GitHub to Code Engine?

4. Explore Batch Jobs

Code Engine isn’t just for web applications—it can run batch jobs too!

Ask Bob:

Show me how to run a batch job on Code Engine

5. Configure Event-Driven Workloads

Set up your application to respond to events from Cloud Object Storage, Kafka, or cron schedules.

Additional Resources

Learn More About Code Engine

Learn More About Bob

Helpful Tutorials

Troubleshooting Tips

If you run into issues, Bob is there to help! Here are some common scenarios:

“My deployment failed”

Ask Bob:

Why did my deployment fail? Can you help me troubleshoot?

Bob will analyze the error logs and suggest solutions.

“My website is slow to load”

Ask Bob:

My website seems slow after being idle. How can I fix this?

Bob will explain cold starts and help you configure min-scale if needed.

“I want to see what’s happening”

Ask Bob:

Show me the logs for my application

Bob will fetch and display the logs, helping you understand what’s happening.

“I need to change the configuration”

Ask Bob:

I want to increase the memory for my application to 1G

Bob will update the configuration and redeploy for you.

Conclusion: Deployment Made Simple

You’ve just experienced the future of cloud deployment. What traditionally required:

…now happens through a simple conversation with Bob.

IBM Cloud Code Engine provides the powerful, serverless platform that scales automatically and charges only for what you use. Bob adds the conversational intelligence that makes it feel effortless. Together, they create a deployment experience where you focus on building great applications, and the cloud infrastructure just works.

🚀 Your Turn!

Ready to deploy your own application? Here’s your action plan:

Step 1: Set Up (5 minutes)

Step 2: Deploy (10 minutes)

Step 3: Explore (Ongoing)


Remember: Deployment doesn’t have to be complicated. With Bob and Code Engine, it’s as simple as describing what you want.

Your next deployment is just a conversation away. Happy deploying! 🚀


Have questions or want to share what you built? Connect with the Bob and Code Engine communities—we’d love to hear about your experience!