V8-archive: CLI install module use the Super Admin Token as Projectname

Created on 21 Jan 2020  路  7Comments  路  Source: directus/v8-archive

Bug Report

Steps to Reproduce

Based on https://docs.directus.io/guides/cli.html#install-module

  1. Go to CLI
  2. Run bin/directus install:config -n <database-name> -u <database-user> -p <database-pwd> -N <projectname> -a <superadmin-token>

Expected Behavior

A config file is created config/<projectname>.php

Actual Behavior

The config file is named after the Super Admin Token : config/<superadmin-token>.php and everything in the config file use the token instead of projectname too.

Other Context & Screenshots

Technical Details

  • Directus 8.4.0
bug

All 7 comments

php bin/directus install:database doesn't seem to take the -N argument either.
How can I install the database without the CLI ?

@rijkvanzanten - Should we close this as we're redeveloping the CLI module?

Not unless we have it fixed. I believe I saw a PR for this the other day though

@rijkvanzanten - TBH, I didn't see any PR related to this. We have https://github.com/directus/api/pull/1614 only which is on hold for now.

Let's put this also on hold until we do not merge the #1614

@alrick
Please use -k instaed on -N
bin/directus install:config -n <database-name> -u <database-user> -p <database-pwd> -k <projectname> -a <superadmin-token>

@hemratna Thanks for the follow-up, I'll try this.

Please note that the documentation isn't fully updated, there is still a reference to the -N option in the Configure Directus options and the Upgrade Directus Schema example.
(https://docs.directus.io/guides/cli.html)

I sent a PR for doc https://github.com/directus/docs/pull/297
Thanks a lot. :)

Was this page helpful?
0 / 5 - 0 ratings