Skip to content

Commit

Permalink
Bump up Yorkie to v0.4.7 and Update document for CLI (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins authored Oct 10, 2023
1 parent aa11e39 commit bd87c56
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Common Environment Variables
NEXT_PUBLIC_YORKIE_VERSION='0.4.6'
NEXT_PUBLIC_YORKIE_JS_VERSION='0.4.6'
NEXT_PUBLIC_YORKIE_VERSION='0.4.7'
NEXT_PUBLIC_YORKIE_JS_VERSION='0.4.7'
NEXT_PUBLIC_YORKIE_IOS_VERSION='0.4.6'
NEXT_PUBLIC_YORKIE_ANDROID_VERSION='0.3.5'
NEXT_PUBLIC_DASHBOARD_PATH='/dashboard'
Expand Down
23 changes: 22 additions & 1 deletion docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,33 @@ Flags:
To use admin commands, you need to log in to the server. You can log in to the server using the `login` subcommand:
```bash
$ yorkie login -u <username> -p <password>
$ yorkie login -u <username> -p <password> --rpc-addr api.yorkie.dev:443
```
Username and password are the same as the ones you used to log in to the [dashboard](/dashboard).
> If you are using the [self-hosted server](/docs/self-hosted-server), default username and password are `admin` and `admin`.
> You can log in to the server using `yorkie login -u admin -p admin --insecure`.
Once you log in to the server, the CLI stores the access token in the `~/.yorkie/config.json` file.
You can check the context of the CLI using the `context` subcommand:
```bash
$ yorkie context ls
CURRENT RPC ADDR INSECURE TOKEN
api.yorkie.dev:443 false eyJhbGciOi...DuhaUgofYg
* localhost:11101 true eyJhbGciOi...FUT3js73Mw
```
If you want to log out from the server, you can use the `logout` subcommand:
```bash
$ yorkie logout
$ yorkie context ls
CURRENT RPC ADDR INSECURE TOKEN
* api.yorkie.dev:443 false eyJhbGciOi...DuhaUgofYg

```
### Project
Expand Down

0 comments on commit bd87c56

Please sign in to comment.