diff --git a/docs/admin/adding-a-host-to-the-network.md b/docs/admin/adding-a-host-to-the-network.md index 068b143..e7dbdf5 100644 --- a/docs/admin/adding-a-host-to-the-network.md +++ b/docs/admin/adding-a-host-to-the-network.md @@ -43,7 +43,7 @@ To create a `bootstrap.yml` file for the new host, the admin should perform the following command from their own host: ``` -cryptic-net hosts make-bootstrap \ +cryptic-net hosts create-bootstrap \ --hostname \ --ip \ --admin-path \ @@ -61,12 +61,12 @@ running their host's `cryptic-net daemon`. ### Encrypted `admin.yml` If `admin.yml` is kept in an encrypted format on disk (it should be!) then the -decrypted form can be piped into `make-bootstrap` over stdin. For example, if +decrypted form can be piped into `create-bootstrap` over stdin. For example, if GPG is being used to secure `admin.yml` then the following could be used to generate a `bootstrap.yml`: ``` -gpg -d | cryptic-net hosts make-boostrap \ +gpg -d | cryptic-net hosts create-bootstrap \ --hostname \ --ip \ --admin-path - \ diff --git a/entrypoint/src/cmd/entrypoint/admin.go b/entrypoint/src/cmd/entrypoint/admin.go index 46a3113..9df90a7 100644 --- a/entrypoint/src/cmd/entrypoint/admin.go +++ b/entrypoint/src/cmd/entrypoint/admin.go @@ -245,8 +245,8 @@ var subCmdAdminCreateNetwork = subCmd{ }, } -var subCmdAdminMakeBootstrap = subCmd{ - name: "make-bootstrap", +var subCmdAdminCreateBootstrap = subCmd{ + name: "create-bootstrap", descr: "Creates a new bootstrap.yml file for a particular host and writes it to stdout", checkLock: true, do: func(subCmdCtx subCmdCtx) error { @@ -335,7 +335,7 @@ var subCmdAdmin = subCmd{ do: func(subCmdCtx subCmdCtx) error { return subCmdCtx.doSubCmd( subCmdAdminCreateNetwork, - subCmdAdminMakeBootstrap, + subCmdAdminCreateBootstrap, ) }, }