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/content/dev/cli/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ The `tux` CLI defaults to **development mode** for all command groups (`db`, `de
11
11
12
12
```bash
13
13
# Example: Apply migrations to production database
14
-
poetry run tux --prod db migrate
14
+
poetry run tux db migrate --prod
15
15
16
16
# Example: Start the bot using production token/DB
17
-
poetry run tux --prod start
17
+
poetry run tux start --prod
18
18
```
19
19
20
20
***Development Mode (Default / Explicit):**
@@ -23,10 +23,10 @@ The `tux` CLI defaults to **development mode** for all command groups (`db`, `de
23
23
```bash
24
24
# These are equivalent and run in development mode:
25
25
poetry run tux db push
26
-
poetry run tux --dev db push
26
+
poetry run tux db push --dev
27
27
28
28
poetry run tux start
29
-
poetry run tux --dev start
29
+
poetry run tux start --dev
30
30
```
31
31
32
32
This default-to-development approach prioritizes safety by preventing accidental operations on production environments. The environment determination logic can be found in`tux/utils/env.py`.
0 commit comments