# Display banner when executing julia from cmd?

**URL:** <https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601>\
**Category:** General Usage\
**Created:** [July 13, 2021, 8:28pm UTC](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601 "2021-07-13T20:28:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredih/32/20945_2.png) [@fredih](https://discourse.julialang.org/u/fredih)\
**Post date:** [July 13, 2021, 8:28pm UTC](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601/1 "2021-07-13T20:28:41Z")

</div>

I would like the welcome banner that is displayed when you enter the REPL to be printed when I execute something like `julia myCode.jl` in Window’s cmd. Is there a way to do so?

---

<div class="post-metadata">

**Author:** ![raminammour](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raminammour/32/13572_2.png) [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Post date:** [July 13, 2021, 8:52pm UTC](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601/2 "2021-07-13T20:52:54Z")

</div>

It appears that you can call `Base.banner()` directly. So for example if you have a call to `Base.banner()` in a filename called `banner_start.jl` you can do something like this works:

```julia
julia -L banner_start.jl -e "println(:hello)"
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

hello

```

---

<div class="post-metadata">

**Author:** ![fredih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredih/32/20945_2.png) [@fredih](https://discourse.julialang.org/u/fredih)\
**Post date:** [July 14, 2021, 4:36pm UTC](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601/3 "2021-07-14T16:36:50Z")

</div>

It worked! Thanks!
