You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roboflow makes computer vision accessible to all developers.
4
-
[https://roboflow.com](https://roboflow.com)
3
+
# Roboflow CLI 💻
5
4
6
-
**This project is under active development, use at your own risk**
5
+
The Roboflow CLI provides a command line-driven method through which you can interface with Roboflow, upload data, and run inference on images.
7
6
8
-
## CLI tool
7
+
## Installation 🛠️
9
8
10
9
This package install a `roboflow` CLI you can use from your terminal.
11
10
12
-
To install this package and CLI globally:
11
+
To install the Roboflow CLI, use the following command:
13
12
14
13
```
15
14
npm i -g roboflow-cli
16
15
```
17
16
18
-
### Authorize the CLI
17
+
<detailsclose>
18
+
<summary>👉 Run the CLI in a docker container (alpha support)</summary>
19
+
20
+
### Run the CLI in a docker container (alpha support)
21
+
22
+
If you don't want to install node, npm and other roboflow cli dependencies, but still use the roboflow cli you can run it in a docker container.
23
+
24
+
Assuming you have docker installed on your machine, first build the image
25
+
26
+
```
27
+
docker build -t roboflowcli:latest .
28
+
```
29
+
30
+
Then, run the Roboflow cli docker image:
31
+
32
+
```
33
+
# Authorize
34
+
35
+
docker run -it --rm -v ~/.config/roboflow:/root/.config/roboflow roboflowcli:latest auth
36
+
37
+
# Use the CLI as usual inside a docker container.
38
+
39
+
docker run -it --rm -v ~/.config/roboflow:/root/.config/roboflow roboflowcli:latest project list
40
+
```
41
+
42
+
Here we have mounted the roboflow credentials into the docker container. The first docker command authorizes the user and stores credentials
43
+
in the user's `$HOME/.config/roboflow` directory. These credentials are then mounted onto the docker container in subsequent runs, as shown above.
44
+
</details>
45
+
46
+
## Authenticate with the CLI
19
47
20
48
To authorize your CLI, run the following command.
21
49
@@ -25,7 +53,7 @@ roboflow login
25
53
26
54
This will open a browser window and have you log into roboflow where you can select any workspaces you want the CLI to store auth credentials for (The CLi will download the api keys for the workspaces and store them in a config fle in the `~/.config/roboflow` directory on your system).
27
55
28
-
### Using the CLI
56
+
##Quickstart 🚀
29
57
30
58
You can use the `roboflow` CLI to:
31
59
@@ -53,31 +81,12 @@ or
53
81
roboflow detect -h
54
82
```
55
83
56
-
### Run the CLI in a docker container (alpha support)
57
-
58
-
If you don't want to install node, npm and other roboflow cli dependencies, but still use the roboflow cli you can run it in a docker container.
59
-
60
-
Assuming you have docker installed on your machine, first build the image
61
-
62
-
```
63
-
docker build -t roboflowcli:latest .
64
-
```
65
-
66
-
Then, run the roboflow cli docker image interactively like so
67
-
68
-
69
-
70
-
```
71
-
# Authorize
72
-
73
-
docker run -it --rm -v ~/.config/roboflow:/root/.config/roboflow roboflowcli:latest auth
84
+
You will similarly have to mount any data directories in case you are uploading images or annotations, for example.
74
85
75
-
# Use the CLI as usual inside a docker container.
86
+
## Documentation 📚
76
87
77
-
docker run -it --rm -v ~/.config/roboflow:/root/.config/roboflow roboflowcli:latest project list
78
-
```
88
+
To view a full reference for the RoboflowAPI and CLI, check out the [Roboflow API Reference](https://docs.roboflow.com/api-reference/install-cli).
79
89
80
-
Here we have mounted the roboflow credentials into the docker container. The first docker command authorizes the user and stores credentials
81
-
in the user's `$HOME/.config/roboflow` directory. These credentials are then mounted onto the docker container in subsequent runs, as shown above.
90
+
## License 🧑⚖
82
91
83
-
You will similarly have to mount any data directories in case you are uploading images or annotations, for example.
92
+
This project is licensed under an [MIT license](LICENSE).
0 commit comments