# Is there a way to suppress Julia from loading the \`startup.jl\` file, using a command line flag?

**URL:** https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530
**Category:** New to Julia
**Tags:** question
**Created:** [December 6, 2024, 10:20am UTC](https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530 "2024-12-06T10:20:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![world-peace](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@world-peace](https://discourse.julialang.org/u/world-peace)
#### Post date: [December 6, 2024, 10:20am UTC](https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530/1 "2024-12-06T10:20:01Z")

</div>

I’m doing some testing, and I need a way to do two things:

1. Load a temporary, customized `startup.jl` file
2. Stop Julia from automatically loading `startup.jl`, which in this particular case is the one from the users home directory. (`~/.julia/config/startup.jl`)

I found a way to do 1, using a command line flag `-L`, which causes Julia to load a file when it starts up. I _assuming_ but don’t exactly know if this has the same effect as the automatic loading the regular `startup.jl` file.

```julia
$ julia -L startup.jl myTarget.jl

```

However, when I tested this, I found that Julia still loads the `startup.jl` file.

I need a way to disable this temporarily. I am hoping there is a command line flag for this?

The obvious solution if there isn’t to temporarily rename it - but I need to keep switching between the two behaviors so this is a bit of a pain.

I guess I could also change the value of `JULIA_DEPOT_PATH`, but again this will have other side effects beyond the one I am targeting.

---

<div class="post-metadata">

### Author: ![DanielVandH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielvandh/32/31134_2.png) [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)
#### Post date: [December 6, 2024, 10:20am UTC](https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530/2 "2024-12-06T10:20:57Z")

</div>

`julia --startup-file=no`

---

<div class="post-metadata">

### Author: ![sgaure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sgaure/32/14779_2.png) [@sgaure](https://discourse.julialang.org/u/sgaure)
#### Post date: [December 6, 2024, 10:20am UTC](https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530/3 "2024-12-06T10:20:58Z")

</div>

```julia
$ julia --startup=no ...

```

---

<div class="post-metadata">

### Author: ![world-peace](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@world-peace](https://discourse.julialang.org/u/world-peace)
#### Post date: [December 6, 2024, 11:33am UTC](https://discourse.julialang.org/t/is-there-a-way-to-suppress-julia-from-loading-the-startup-jl-file-using-a-command-line-flag/123530/4 "2024-12-06T11:33:33Z")

</div>

Thanks both that’s great
