-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bff879
commit 93603cd
Showing
1 changed file
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,37 @@ | ||
# cli | ||
# Opticks CLI | ||
|
||
## Usage | ||
|
||
```shell | ||
npx opticks-cli clean | ||
|
||
// OR | ||
|
||
npx opticks clean id=EXPERIMENT-ID winner=A|B | ||
``` | ||
|
||
## Running locally | ||
|
||
First you will need to install dependencies and build the CLI in watch mode | ||
|
||
```shell | ||
cd opticks | ||
yarn install | ||
cd packages/cli && yarn build:watch | ||
``` | ||
cd packages/cli && node dist/index.js | ||
|
||
In a separate terminal window, create a symlink for `opticks-cli` | ||
|
||
```shell | ||
cd opticks | ||
npm link | ||
``` | ||
|
||
Navigate to your consumer project and link `opticks-cli` | ||
|
||
```shell | ||
cd opticks-consumer-project | ||
npm link opticks-cli | ||
|
||
opticks-cli clean | ||
``` |