# LibTmux::Server.from-env

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L302
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-from-env/

```
method from-env(Mu :$environment = %*ENV, *%settings)
```

Import an explicit TMUX environment, verify its daemon PID and bind that incarnation.

Import an explicit TMUX environment, verify its daemon PID and bind that incarnation.

## Parameters

- `$environment?` (`Mu`)
- `%settings`

## tmux command

The tmux commands behind `from-env`.

- [`run-shell`](/en/tmux/latest/manual/run-shell/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_run_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_run_shell_entry/) (attribute)
- [`cmd_run_shell_exec`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function)

## In other ports

The server this process is running inside

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.from_env`](/en/py/latest/reference/libtmux-server-from_env/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Server` |
| Rust | [`server.Server.from_env`](/en/rs/latest/reference/server-server-from_env/) (method) |
| Go | no equivalent on `Server` |
| Java | no equivalent on `Server` |
| C# | [`LibTmux.Server.FromEnvironment`](/en/csharp/latest/reference/libtmux-server-fromenvironment/) (method) |
| C++ | [`libtmux::Server::from_env`](/en/cxx/latest/reference/libtmux-server-from_env/) (method) |
| Swift | no equivalent on `Server` |
| OCaml | Endpoint selection is explicit. Construct a named socket or socket path; the library does not infer an ambient server. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
