1ALEMBIC(1)                       User Commands                      ALEMBIC(1)
2
3
4

NAME

6       alembic - manual page for alembic 1.9.3
7

DESCRIPTION

9       usage: -c [-h] [--version] [-c CONFIG] [-n NAME] [-x X] [--raiseerr]
10
11              {branches,check,current,downgrade,edit,ensure_version,heads,his‐
12              tory,init,list_templates,merge,revision,show,stamp,upgrade} ...
13
14   positional arguments:
15              {branches,check,current,downgrade,edit,ensure_version,heads,his‐
16              tory,init,list_templates,merge,revision,show,stamp,upgrade}
17
18       branches
19              Show current branch points.
20
21       check  Check  if revision command with autogenerate has pending upgrade
22              ops.
23
24       current
25              Display the current revision for a database.
26
27       downgrade
28              Revert to a previous version.
29
30       edit   Edit revision script(s) using $EDITOR.
31
32       ensure_version
33              Create the alembic version table if it doesn't exist already .
34
35       heads  Show current available heads in the script directory.
36
37       history
38              List changeset scripts in chronological order.
39
40       init   Initialize a new scripts directory.
41
42       list_templates
43              List available templates.
44
45       merge  Merge two revisions together. Creates a new migration file.
46
47       revision
48              Create a new revision file.
49
50       show   Show the revision(s) denoted by the given symbol.
51
52       stamp  'stamp' the revision table with the given  revision;  don't  run
53              any migrations.
54
55       upgrade
56              Upgrade to a later version.
57
58   options:
59       -h, --help
60              show this help message and exit
61
62       --version
63              show program's version number and exit
64
65       -c CONFIG, --config CONFIG
66              Alternate config file; defaults to value of ALEMBIC_CONFIG envi‐
67              ronment variable, or "alembic.ini"
68
69       -n NAME, --name NAME
70              Name of section in .ini file to use for Alembic config
71
72       -x X   Additional arguments consumed by custom env.py scripts, e.g.  -x
73              setting1=somesetting -x setting2=somesetting
74
75       --raiseerr
76              Raise a full stack trace on error
77
78
79
80alembic 1.9.3                    February 2023                      ALEMBIC(1)
Impressum