Skip to content

Commit

Permalink
cmd/atlas: add atlas serve docs (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson authored Mar 3, 2022
1 parent 2799cd6 commit f8cbe54
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
22 changes: 22 additions & 0 deletions cmd/atlas/doc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,26 @@ go get ariga.io/atlas/cmd/atlas
```
{{ end }}
{{ end }}
## atlas serve

Run Atlas web UI in a standalone mode

#### Usage
```
atlas serve [flags]
```

#### Details
'atlas serve' runs the Atlas web UI in a standalone mode with optional persistent storage.
If you do not specify the storage, it will be stored in-memory.
Atlas encrypts sensitive data such as passwords using the generated keyset.json.

#### Flags
```
--addr string listen address for atlas serve (default ":8080")
--storage string data store url using the dsn format:
[driver://username:password@protocol(address)/dbname?param=value] (default "in-memory")
-h, --help help for serve
```

{{ end }}
22 changes: 22 additions & 0 deletions doc/md/cli/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,25 @@ atlas version
```


## atlas serve

Run Atlas web UI in a standalone mode

#### Usage
```
atlas serve [flags]
```

#### Details
'atlas serve' runs the Atlas web UI in a standalone mode with optional persistent storage.
If you do not specify the storage, it will be stored in-memory.
Atlas encrypts sensitive data such as passwords using the generated keyset.json.

#### Flags
```
--addr string listen address for atlas serve (default ":8080")
--storage string data store url using the dsn format:
[driver://username:password@protocol(address)/dbname?param=value] (default "in-memory")
-h, --help help for serve
```

6 changes: 0 additions & 6 deletions doc/package-lock.json

This file was deleted.

0 comments on commit f8cbe54

Please sign in to comment.