# run_auth_command

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/commands/auth/run_auth_command)

Dispatch a parsed `dcode auth` invocation.

## Signature

```python
run_auth_command(
    args: argparse.Namespace,
) -> int
```

## Returns

`int`

Process exit code (`0` on success, non-zero on error).

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/client/commands/auth.py#L170)