diff --git a/doc/002-local-dev.md b/doc/002-local-dev.md index 10e6b827b..a86ec8491 100644 --- a/doc/002-local-dev.md +++ b/doc/002-local-dev.md @@ -20,9 +20,20 @@ This guide can be used to run all of the Ziti applications via command line or i 2. Change into the `ziti` dirrectory - `cd ziti` 3. Build - - `go build ./ziti-controller` - - `go build ./ziti-router` - - `go build ./ziti/cmd/ziti` + - `go install ./...` + +### Initializing the Controller +Before you can run the controller you have to initialize it's database with an administrative user. Assuming you want to run with the edge enabled, this can be done using as follows: + +```bash +ziti-controller edge init etc/ctrl.with.edge.yml -u -p +``` + +Example: + +```bash +ziti-controller edge init etc/ctrl.with.edge.yml -u admin -p o93wjh5n +``` ### Starting the Controller diff --git a/etc/edge.router.yml b/etc/edge.router.yml index f426aa7ea..6f559dab4 100644 --- a/etc/edge.router.yml +++ b/etc/edge.router.yml @@ -135,4 +135,4 @@ web: # Specifies an API to bind to this webListener. Built-in APIs are # - health-checks - binding: health-checks -~ +