Skip to content

Conversation

lordkrandel
Copy link
Contributor

@lordkrandel lordkrandel commented Aug 21, 2025

Added the new i18n and module commands.
Added the existing deploy, obfuscate, upgrade_code commands.
Reviewed titles to make the commands stand out in the ToC.
Removed the no longer present tsconfig command.

Task link
task-4866527

@robodoo
Copy link
Collaborator

robodoo commented Aug 21, 2025

Pull request status dashboard

@lordkrandel lordkrandel force-pushed the master-new-command-line-pgi branch 3 times, most recently from 2d4eb91 to a772479 Compare August 22, 2025 10:03
@lordkrandel lordkrandel changed the title [WIP] [IMP] developer: new CLI commands and improvements Aug 22, 2025
@lordkrandel lordkrandel force-pushed the master-new-command-line-pgi branch from a772479 to cc3e3fb Compare August 22, 2025 10:38
Added the new `i18n` and `module` commands.
Added the existing `deploy`, `obfuscate`, `upgrade_code` commands.
Reviewed titles to make the commands stand out in the ToC.
Removed the no longer present `tsconfig` command.

task-4866527
@lordkrandel lordkrandel force-pushed the master-new-command-line-pgi branch from cc3e3fb to 17ab6d6 Compare August 22, 2025 15:39
@lordkrandel lordkrandel marked this pull request as ready for review August 22, 2025 15:39
@C3POdoo C3POdoo requested a review from a team August 22, 2025 15:40
@@ -236,7 +251,7 @@ Database

port the database listens on, defaults to 5432

.. option:: --db-filter <filter>
.. option:: --nb-filter <filter>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

        group.add_option("--db-filter", dest="dbfilter", my_default='', metavar="REGEXP",
                         help="Regular expressions for filtering available databases for Web UI. "
                              "The expression can use %d (domain) and %h (host) placeholders.")

@@ -654,15 +646,13 @@ and other ``-`` are replaced by ``_`` e.g. :option:`--db-template` becomes

Some conversions don't match the pattern:

* :option:`--db-filter` becomes ``dbfilter``
* `--db-filter` becomes ``dbfilter``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:option: should be restored

==========
.. _reference/cmdline/db:

`db` - Database Management
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the other commands use a verb

Suggested change
`db` - Database Management
`db` - Manage a Database


.. option:: --force

Delete the database if already exists.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Delete the database if already exists.
Delete the database, may it exists already, before initializing the new one.


.. option:: --language <language_code>

Default language for the instance, default 'en_US'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--username and --password are using backticks, but here it uses quote. Let's make it consistent.

Suggested change
Default language for the instance, default 'en_US'
Default language for the instance, default `en_US`

Prerequisites:

- The server must have the module `base_import_module` installed.
- You must provide administration login credentials for the login.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- You must provide administration login credentials for the login.
- The `--login` selected user must have administration rights.


.. option:: --login <username>

administrative username of the server. Default is `admin`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such thing as a "administrative username". (default admin) for consistency

Suggested change
administrative username of the server. Default is `admin`.
user with admin rights (default `admin`)


.. option:: --password <password>

administrative password of the server. Default is `admin`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
administrative password of the server. Default is `admin`.
password of the user (default `admin`)

Comment on lines +1520 to +1522
.. option:: --verify-ssl

verify the server's SSL certificate, to ensure the target instance is legit.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for your pull-request. But it strikes me that this flag enables the SSL verification, meaning that it doesn't verify the certificate my default. It should be the contrary, the verify by default and to have a --no-verify-ssl flag to make it insecure.

All the scripts are doing a best-effort at migrating the source code, but
they are not silver bullets.

It allows the use of the :option:`--addons-path <odoo-bin --addons-path>` option.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar. It doesn't allow anything. It is compatible with the option.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It allows the use of the :option:`--addons-path <odoo-bin --addons-path>` option.
It understands the :option:`--addons-path <odoo-bin --addons-path>` option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants