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
Copy file name to clipboardExpand all lines: docs/edit/usage.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,12 +70,12 @@ The command line could also works without internet by providing the country code
70
70
Running Any Command with CodeCarbon
71
71
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72
72
73
-
If you want to track emissions while running any command or program (not just Python scripts), you can use the ``codecarbon run`` command.
73
+
If you want to track emissions while running any command or program (not just Python scripts), you can use the ``codecarbon monitor --`` command.
74
74
This allows non-Python users to measure machine emissions during the execution of any command:
75
75
76
76
.. code-block:: console
77
77
78
-
codecarbon run -- <your_command>
78
+
codecarbon monitor -- <your_command>
79
79
80
80
Do not surround ``<your_command>`` with quotes. The double hyphen ``--`` indicates the end of CodeCarbon options and the beginning of the command to run.
81
81
@@ -84,22 +84,22 @@ Do not surround ``<your_command>`` with quotes. The double hyphen ``--`` indicat
84
84
.. code-block:: console
85
85
86
86
# Run a shell script
87
-
codecarbon run -- ./benchmark.sh
87
+
codecarbon monitor -- ./benchmark.sh
88
88
89
89
# Run a command with arguments (use quotes for special characters)
0 commit comments