# Calling Exit from the Package REPL

**URL:** <https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580>\
**Category:** Tooling\
**Tags:** package-manager\
**Created:** [May 1, 2020, 10:01pm UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580 "2020-05-01T22:01:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [May 1, 2020, 10:01pm UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580/1 "2020-05-01T22:01:07Z")

</div>

I regularly make the following error in the REPL package environment.

```julia
] exit()
...
ERROR: Could not determine command

```

Thoughts on adding exit as a valid command in the package environment?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [May 2, 2020, 7:41am UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580/2 "2020-05-02T07:41:51Z")

</div>

I do not think that supporting evaluating Julia code at the `pkg>` prompt is a good idea.

The error is easy to recover from, just press Backspace and try again.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [May 2, 2020, 7:45am UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580/3 "2020-05-02T07:45:00Z")

</div>

Ctrl+D exits from the julia repl and the pkg repl immidiately.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [May 2, 2020, 7:45am UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580/4 "2020-05-02T07:45:10Z")

</div>

> [@ccoffrin](#):
>
> th

I don’t think I have ever typed `exit()`. Use Ctrl-D instead.

---

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [May 2, 2020, 6:29pm UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580/5 "2020-05-02T18:29:48Z")

</div>

I didn’t know that Ctrl+D worked in the REPL, seems obvious introspect. Thanks!
