Browse Source

HUE-8888 [docs] Give output of the command listing

Romain 5 năm trước cách đây
mục cha
commit
6b7060ad50

+ 143 - 1
docs/docs-site/content/administrator/administration/operations.md

@@ -84,15 +84,157 @@ In addition to logging `INFO` level messages to the `logs` directory, the Hue we
 
 ## Commands
 
+Commands are utils handy for performing some tasks like update some user password, creating a super user, cleaning-up old sessions and documents.
+
 Type the following command from the Hue installation root.
 
     cd /usr/lib/hue (or /opt/cloudera/parcels/CDH-XXXXX/share/hue if using parcels and CM)
-    build/env/bin/hue shell
 
 To list all the available commands:
 
     build/env/bin/hue
 
+    > Type 'hue help <subcommand>' for help on a specific subcommand.
+
+    Available subcommands:
+
+    [auth]
+        changepassword
+        createsuperuser
+
+    [axes]
+        axes_list_attempts
+        axes_reset
+
+    [beeswax]
+        beeswax_install_examples
+        beeswax_install_examples_tests
+        close_queries
+        close_sessions
+        create_table_query_data
+
+    [contenttypes]
+        remove_stale_contenttypes
+
+    [desktop]
+        config_dump
+        config_help
+        config_override
+        config_upgrade
+        convert_documents
+        create_desktop_app
+        create_proxy_app
+        create_test_fs
+        create_user_directories
+        desktop_document_cleanup
+        generate_mdl
+        is_db_alive
+        kt_renewer
+        ldaptest
+        runcelery
+        runcherrypyserver
+        runcpserver
+        rungunicornserver
+        runpylint
+        sync_documents
+        syncdb
+        test
+        version
+
+    [django]
+        check
+        compilemessages
+        createcachetable
+        dbshell
+        diffsettings
+        dumpdata
+        flush
+        inspectdb
+        loaddata
+        makemessages
+        makemigrations
+        migrate
+        sendtestemail
+        shell
+        showmigrations
+        sqlflush
+        sqlmigrate
+        sqlsequencereset
+        squashmigrations
+        startapp
+        startproject
+        testserver
+
+    [django_extensions]
+        admin_generator
+        clean_pyc
+        clear_cache
+        compile_pyc
+        create_app
+        create_command
+        create_jobs
+        create_template_tags
+        delete_squashed_migrations
+        describe_form
+        drop_test_database
+        dumpscript
+        export_emails
+        find_template
+        generate_secret_key
+        graph_models
+        mail_debug
+        notes
+        passwd
+        pipchecker
+        print_settings
+        print_user_for_session
+        reset_db
+        runjob
+        runjobs
+        runprofileserver
+        runscript
+        runserver_plus
+        set_default_site
+        set_fake_emails
+        set_fake_passwords
+        shell_plus
+        show_template_tags
+        show_templatetags
+        show_urls
+        sqlcreate
+        sqldiff
+        sqldsn
+        sync_s3
+        syncdata
+        unreferenced_files
+        update_permissions
+        validate_templates
+
+    [indexer]
+        indexer_setup
+
+    [notebook]
+        dbproxy_server
+        notebook_setup
+        send_query_stats
+
+    [oozie]
+        oozie_setup
+
+    [sessions]
+        clearsessions
+
+    [staticfiles]
+        collectstatic
+        findstatic
+        runserver
+
+    [useradmin]
+        import_ldap_group
+        import_ldap_user
+        sync_ldap_users_and_groups
+        useradmin_sync_with_unix
+
 ## Troubleshooting
 
 To troubleshoot why Hue is slow or consuming high memory, admin can enable instrumentation by setting the `instrumentation` flag to True.