1

By default civix generate:module will create an extension licensed with AGPL-3.0. How would one go about changing that default to something else, say, GPL-3.0?

Edit: I'm aware of the --license argument, but to clarify, I'm looking to change the default license permanently, so that I would have e.g. GPL-3.0 on all future invocations of civix generate:module, without additional arguments.

1 Answer 1

1

I believe you can use any of the licenses in https://github.com/totten/license-data/blob/master/index.csv, which is used by civix.

In your case, just add --license=GPL-3.0 to the command.

It looks like you may be able to set a value in ~/.civix/civix.ini to provide a local default: https://github.com/totten/civix/blob/v16.03.2/src/CRM/CivixBundle/Command/InitCommand.php#L118

3
  • Thanks, Andrew. I should have been more specific, in that I'm looking to change the default setting permanently, not just override it on a per-use basis. I've edited the question.
    – TwoMice
    Commented Sep 1, 2016 at 23:41
  • Sorry for misunderstanding--added something that should help.
    – Andie Hunt
    Commented Sep 1, 2016 at 23:49
  • OK, I had to upgrade civix, but that was easy enough. Thanks!
    – TwoMice
    Commented Sep 2, 2016 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.