Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump up Yorkie to v0.4.7 and Update document for CLI #101

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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