Skip to content

Commit 392d77c

Browse files
committed
cut readme update for alpha version
1 parent 61fdf9d commit 392d77c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

README.md

-31
Original file line numberDiff line numberDiff line change
@@ -259,37 +259,6 @@ CustomApp.getInitialProps = async (ctx: AppContext) => {
259259

260260
<br />
261261

262-
# ⚗️ CLI (experimental)
263-
264-
You can use `unleash [action] [options]` in you `package.json` `scripts` section, or with:
265-
266-
```sh
267-
npx @unleash/nextjs
268-
```
269-
270-
Use [Environment Variables](#environment-variables) (needed: `UNLEASH_SERVER_API_URL`, `UNLEASH_SERVER_API_TOKEN`), or shorthand versions: `UNLEASH_URL`, `UNLEASH_TOKEN`, `UNLEASH_APPNAME`.
271-
272-
## Usage
273-
274-
- `get-definitions <outputFile.json>` Download feature flags definitions for bootstrapping (offline use) of server-side SDK.
275-
- `generate-types [options] <outputFile.ts>` Generate types and typed functions from feature flags defined in an Unleash instance.
276-
It will also generate strictly typed versions of `useFlag`, `useVariant`, `useFlags` and `flagsClient` (unless `--typesOnly` is used).
277-
- `-t, --typesOnly` don't include typed versions of functions exported from `@unleash/nextjs` (default: false)
278-
- `-b, --bootstrap <sourceFile.json>` load definitions from a file instead of fetching definitions - work offline
279-
- `-V` Output the version number
280-
281-
## Example
282-
283-
Try it now
284-
285-
```sh
286-
UNLEASH_URL=https://app.unleash-hosted.com/demo/api \
287-
UNLEASH_TOKEN=test-server:default.8a090f30679be7254af997864d66b86e44dcfc5291916adff72a0fb5 \
288-
npx @unleash/nextjs generate-types ./unleash.ts
289-
```
290-
291-
<br/>
292-
293262
# What's next
294263

295264
## Experimental features support

0 commit comments

Comments
 (0)