---
title: "Creating a CLI Application With Laravel and Docker"
url: https://daily.dev/posts/creating-a-cli-application-with-laravel-and-docker-2sl832xzc
source_url: https://laravel-news.com/creating-a-cli-app-with-laravel-and-docker
type: article
source: "Laravel News"
published: 2024-10-28T13:10:46.429Z
updated: 2024-12-09T11:36:17.013Z
tags: ["devops", "docker", "php", "cli", "laravel"]
reading_time: 8
upvotes: 32
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a CLI Application With Laravel and Docker

**[Laravel News](https://daily.dev/sources/ln)** · 8 min read · 32 upvotes · 1 comments

## Summary

Learn how to create a CLI application using Laravel and Docker. The guide provides steps to set up a project, scaffold a command to check stock prices using the Polygon.io API, and prepare the application to run via Docker. It also explains how to configure environment variables for API keys and leverage Docker's ENTRYPOINT instruction for running commands.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/creating-a-cli-app-with-laravel-and-docker>

## Community discussion

Top comments from developers on daily.dev.

**@sam7work** · 0 upvotes

> while Laravel has sail to handle all things Docker , it never hurts to have a good, simple article to wrap your head around around the concepts, combined with yet an unusual use-case of a cli api client

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#docker](https://daily.dev/tags/docker), [#php](https://daily.dev/tags/php), [#cli](https://daily.dev/tags/cli), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/creating-a-cli-application-with-laravel-and-docker-2sl832xzc)
