mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	documentation and changelog
This commit is contained in:
		@@ -206,26 +206,34 @@ Execute the following management command to migrate your database:
 | 
			
		||||
 | 
			
		||||
    Some migrations cannot be undone. The command will issue errors if that happens.
 | 
			
		||||
 | 
			
		||||
.. _utilities-management-commands:
 | 
			
		||||
 | 
			
		||||
Management utilities
 | 
			
		||||
####################
 | 
			
		||||
 | 
			
		||||
Paperless comes with some management commands that perform various maintenance
 | 
			
		||||
tasks on your paperless instance. You can invoke these commands either by
 | 
			
		||||
tasks on your paperless instance. You can invoke these commands in the following way:
 | 
			
		||||
 | 
			
		||||
With docker-compose, while paperless is running:
 | 
			
		||||
 | 
			
		||||
.. code:: shell-session
 | 
			
		||||
 | 
			
		||||
    $ cd /path/to/paperless
 | 
			
		||||
    $ docker-compose exec -u paperless webserver python3 manage.py <command> <arguments>
 | 
			
		||||
    $ docker-compose exec webserver <command> <arguments>
 | 
			
		||||
 | 
			
		||||
or
 | 
			
		||||
With docker, while paperless is running:
 | 
			
		||||
 | 
			
		||||
.. code:: shell-session
 | 
			
		||||
 | 
			
		||||
    $ docker exec -it <container-name> <command> <arguments>
 | 
			
		||||
 | 
			
		||||
Bare metal:
 | 
			
		||||
 | 
			
		||||
.. code:: shell-session
 | 
			
		||||
 | 
			
		||||
    $ cd /path/to/paperless/src
 | 
			
		||||
    $ python3 manage.py <command> <arguments>
 | 
			
		||||
 | 
			
		||||
depending on whether you use docker or not.
 | 
			
		||||
 | 
			
		||||
All commands have built-in help, which can be accessed by executing them with
 | 
			
		||||
the argument ``--help``.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,9 @@ This release contains new database migrations.
 | 
			
		||||
 | 
			
		||||
* Added ASN as a placeholder field to the filename format.
 | 
			
		||||
 | 
			
		||||
* The docker image now comes with built-in shortcuts for most management commands. These are now the recommended way to execute management commands, since these
 | 
			
		||||
  also ensure that they're always executed as the paperless user and you're less likely to run into permission issues. See :ref:`utilities-management-commands`.
 | 
			
		||||
 | 
			
		||||
paperless-ng 1.1.0
 | 
			
		||||
##################
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user