Skip to content

Commit

Permalink
feat: initial commit of standalone discovery client
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Aug 6, 2020
0 parents commit c7c4f5b
Show file tree
Hide file tree
Showing 4 changed files with 1,472 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# discovery-client-standalone

Standalone version of the Opentrons [Discovery Client CLI][]

## installation

1. Download the [latest release][] for your OS
2. (Optional) Copy or symlink the executable into a directory in your `PATH`

## usage

This example uses macOS, but replace the executable with whatever file you downloaded. See the [discovery client cli][] documentation for more usage details.

```shell
# print help and usage
./discovery-client-macos --help

# browse for all robots
./discovery-client-macos browse

# find the IP address of a specific robot by its name
./discovery-client-macos find OT2P00000000A00
```

[discovery client cli]: https://github.com/Opentrons/opentrons/tree/edge/discovery-client#cli
[latest release]: https://github.com/Opentrons/discovery-client-standalone/releases/latest
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@opentrons/discovery-client-standalone",
"private": true,
"version": "3.6.5",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"predist": "yarn clean",
"dist": "pkg node_modules/@opentrons/discovery-client/bin/index.js --targets node12,linux,macos,win,x64 --output dist/discovery-client${target}"
},
"dependencies": {
"@opentrons/discovery-client": "3.6.5"
},
"devDependencies": {
"pkg": "^4.4.9",
"rimraf": "^3.0.2"
}
}
Loading

0 comments on commit c7c4f5b

Please sign in to comment.