Skip to content

--sudo-password in bench initialization not recognized #64

Description

@sambhavsaxena

Followed the README file to setup with sudo password. Didn't work.

Image

Text version:

sambhavsaxena@studio bench-cli % bench                                 
usage: bench [-h] [--verbose] [--yes] [--bench NAME]
             {setup,volume,build,build-admin,frappe,get-app,init,list-apps,list-site-apps,new,new-site,remove-app,restart,start,status,stop,uninstall-app,update,upgrade} ...

Frappe bench manager

positional arguments:
  {setup,volume,build,build-admin,frappe,get-app,init,list-apps,list-site-apps,new,new-site,remove-app,restart,start,status,stop,uninstall-app,update,upgrade}
    setup               Production setup commands.
    volume              ZFS volume management commands.
    build               Build assets (downloads pre-built if available).
    build-admin         Download or rebuild admin frontend assets.
    frappe              Run a frappe CLI command.
    get-app             Clone and install an app.
    init                Initialise the bench.
    list-apps           List apps installed in the bench.
    list-site-apps      List apps installed on a site.
    new                 Create a new bench.
    new-site            Create a new site and add it to bench.toml.
    remove-app          Remove an app from the bench.
    restart             Restart supervisor processes (production mode only).
    start               Start all bench processes.
    status              Show bench status summary.
    stop                Stop the running bench.
    uninstall-app       Uninstall an app from a site.
    update              Pull latest code and migrate sites.
    upgrade             Pull latest bench-cli and download the admin frontend.

options:
  -h, --help            show this help message and exit
  --verbose             Show full tracebacks on error.
  --yes, -y             Skip confirmation prompts.
  --bench, -b NAME      Bench to operate on (name inside benches/).
sambhavsaxena@studio bench-cli % bench init --sudo-password my-password
usage: bench [-h] [--verbose] [--yes] [--bench NAME]
             {setup,volume,build,build-admin,frappe,get-app,init,list-apps,list-site-apps,new,new-site,remove-app,restart,start,status,stop,uninstall-app,update,upgrade} ...
bench: error: unrecognized arguments: --sudo-password my-password
sambhavsaxena@studio bench-cli % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions