---
title: "vakna net allow"
description: "Let boxes reach a host through Vakna's proxy; egress is in lockdown."
command: "vakna net allow"
generated: scripts/generate.ts
verified:
  cli: "0.0.0-mock"
  date: "2026-10-20"
---

`vakna net allow`: let boxes reach a host through Vakna's proxy; egress is in lockdown. Proposed: the real CLI doesn't have this command yet.

## Synopsis

```sh
vakna net allow <host>
```

## Flags

| Flag | Default | What it does |
| -- | -- | -- |
| `--format <format>` | `text` | text, or json: one JSON object per line |
| `--json` | `off` | the same as --format json |
| `-h, --help` | `off` | this help |

## Examples

### Example

```sh
$ vakna net allow pypi.org
```

```prints
lockdown now lets pypi.org out · 3 hosts allowed 0.04s
```

Exit code 0.

### Another example

```sh
$ vakna net allow proxy.golang.org --format json
```

```prints
{"v":1,"event":"net_allowed","host":"proxy.golang.org","posture":"lockdown","allowed":["github.com","registry.npmjs.org","proxy.golang.org"],"ms":40,"mocked":true}
```

Exit code 0.

### When it fails

```sh
$ vakna net allow
```

```prints
vakna: missing a host
hint: vakna net allow --help
```

Exit code 2.

## Exit codes

| Code | Meaning |
| -- | -- |
| 0 | ok |
| 2 | usage: a missing argument, an unknown flag or command |

## JSON output

With `--format json` (or `--json`) every line is one JSON object. `v` is the format's version; `mocked` marks numbers from the mock.

```sh
$ vakna net allow proxy.golang.org --format json
```

```prints
{"v":1,"event":"net_allowed","host":"proxy.golang.org","posture":"lockdown","allowed":["github.com","registry.npmjs.org","proxy.golang.org"],"ms":40,"mocked":true}
```

## Errors

- [`vakna: unknown command, unknown flag or missing argument`](https://vakna.com/docs/errors/usage): Run `vakna <command> --help` and fix the command line it points to.

## --help

This page and the help text come from one definition.

```prints
vakna net allow · let boxes reach a host through Vakna's proxy; egress is in lockdown
Proposed: the real CLI doesn't have this command yet.

usage
  vakna net allow <host>

flags
  --format <format>  text, or json: one JSON object per line  (default: text)
  --json             the same as --format json  (default: off)
  -h, --help         this help  (default: off)

examples
  vakna net allow pypi.org
  vakna net allow proxy.golang.org --format json

exit codes
  0  ok
  2  usage: a missing argument, an unknown flag or command
```
