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
* Add Dockerfile for CLI
* build push cli image
* missing pyyaml
* build: Missing cli deps
* fix path to version in cli
* Set versions to 0.1.4-dev
* remove prefix echo version
* Update CLI install docs with just docker option
* fix alias instructions
Copy file name to clipboardExpand all lines: docs/using-the-cli.mdx
+8-49
Original file line number
Diff line number
Diff line change
@@ -7,59 +7,18 @@ It's the fastest way to interact with Tracecat and is perfect for automating tas
7
7
8
8
## Installation
9
9
10
-
To install the Tracecat CLI, you will need Python 3.12 installed.
11
-
We recommend using `micromamba` to help with managing multiple Python environments.
12
-
13
-
<Note>
14
-
We are working on making our CLI tool more portable so you don't have to use
15
-
`micromamba` in the future.
16
-
</Note>
17
-
18
-
### Setup a Micromamba environment
19
-
20
-
Micromamba is a standalone, pure C++ implementation of the mamba package manager, designed as a smaller and faster alternative to conda.
21
-
It is distributed as a single, statically linked executable file that does not require a base environment or a default Python installation.
22
-
23
-
Full installation instructions [here](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html#operating-system-package-managers)
24
-
25
-
<CodeGroup>
26
-
27
-
```bash MacOS
28
-
brew install micromamba
29
-
```
30
-
31
-
```bash Linux + WSL
32
-
"${SHELL}"<(curl -L micro.mamba.pm/install.sh)
33
-
# You might have to add the binary to your PATH, then follow on-screen instructions
34
-
# to restart and initialize your shell to complete the installation
35
-
```
36
-
37
-
</CodeGroup>
38
-
39
-
With `micromamba` installed, you can now install the Tracecat CLI.
40
-
We create a virtual environment for Tracecat to avoid conflicts with other Python packages.
41
-
42
-
```bash
43
-
micromamba env create -n tracecat python=3.12
44
-
micromamba activate tracecat
45
-
```
46
-
47
-
If the environment is activated correctly, you should see something like this in your shell:
10
+
To install and run the Tracecat CLI, you will need `docker`.
48
11
49
12
```bash
50
-
(tracecat) ~/tracecat $
51
-
```
52
-
53
-
Now from the root of the Tracecat repository, you can install the CLI using `pip`:
13
+
# Pull the latest image
14
+
docker pull ghcr.io/tracecathq/tracecat-cli
54
15
55
-
```bash /path/to/tracecat
56
-
pip install ".[cli]"
57
-
```
16
+
# Create an alias to run the CLI in a container
17
+
alias tracecat='docker run --rm ghcr.io/tracecathq/tracecat-cli "$@"'
58
18
59
-
If installed correctly, you should be able to run the `tracecat` command and see the help output:
0 commit comments