Skip to content

Commit

Permalink
reference: update goliothctl for current state of APIKEY
Browse files Browse the repository at this point in the history
Update the `goliothctl` reference page to show only the basic APIKEY type type
that is currently supported by Golioth.

Signed-off-by: Mike Szczys <[email protected]>
  • Loading branch information
szczys committed Feb 10, 2025
1 parent 52feb3e commit e4e8013
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hide_title: true
---
## goliothctl apikeys create

Create an API key or JSON Web Token (JWT) that can be used to connect to the Golioth REST API.
Create an API key that can be used to connect to the Golioth REST API.



Expand All @@ -23,22 +23,17 @@ goliothctl apikeys create [flags]
> golioth apikeys create
id:"5df88b8e-e208-41d4-b7e2-29192ab5de83" key:"dLEtQLItz9eSHZYwuZGE5UlcgL2GOmHW" type:API_KEY
# Create JWT
> golioth apikeys create --type JWT_KEY
id:"fe71a35c-0cb9-4643-9761-e95c332c2b1c" key:"LQBgNB0LldJ4tyIDDzQd4tY7G060o8bV" type:JWT_KEY secret:"BpYxx835pZ1A8KUpfhWMNiGd1V0e0JB7"
# Create Keys with tag(s)
> golioth apikeys create --keyTag ktag-1
> golioth apikeys create --keyTag ktag-1 --keyTag ktag-2
> golioth apikeys create --type JWT_KEY --keyTag ktag-1 --keyTag ktag-2
```

### Options

```
-h, --help help for create
--keyTag stringArray optionally assign one or more tags to the key being created
-t, --type string api key type [API_KEY JWT_KEY] (default "API_KEY")
-t, --type string api key type (default "API_KEY")
```

Expand Down

0 comments on commit e4e8013

Please sign in to comment.