Answers.Body: <p>I believe you can use any of the licenses in <a href="https://github.com/totten/license-data/blob/master/index.csv" rel="nofollow">https://github.com/totten/license-data/blob/master/index.csv</a>, which is used by civix.</p>
  
  <p>In your case, just add <code>--license=GPL-3.0</code> to the command.</p>
  
  <p>It looks like you may be able to set a value in <code>~/.civix/civix.ini</code> to provide a local default: <a href="https://github.com/totten/civix/blob/v16.03.2/src/CRM/CivixBundle/Command/InitCommand.php#L118" rel="nofollow">https://github.com/totten/civix/blob/v16.03.2/src/CRM/CivixBundle/Command/InitCommand.php#L118</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-01T23:41:32.737Z
Answers.Text: 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.
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-01T23:49:11.413Z
Answers.Text: Sorry for misunderstanding--added something that should help.
Answers.UserDisplayName: Andie Hunt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-02T00:03:38.577Z
Answers.Text: OK, I had to upgrade civix, but that was easy enough. Thanks!
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-01T23:37:00.023Z
Answers.LastActivityDate: 2016-09-01T23:48:43.900Z
Answers.LastEditDate: 2016-09-01T23:48:43.900Z
Answers.UserDisplayName: Andie Hunt
Body: <p>By default <code>civix generate:module</code> will create an extension licensed with AGPL-3.0. How would one go about changing that default to something else, say, GPL-3.0?</p>
  
  <p><strong>Edit:</strong> 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 <code>civix generate:module</code>, without additional arguments.</p>
  
Tags: <civix>
Title: How to change the default license selection in `civix generate:module`?
ThreadText: # How to change the default license selection in `civix generate:module`?
  
  (Asked by: username_0 on 2016-09-01)
  
  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.
  
  **Tags:** civix
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-01. Score: 1 | Accepted answer
  
  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>
  
  > **Comments:**
  > **username_0**: 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.  
  > **username_1**: Sorry for misunderstanding--added something that should help.  
  > **username_0**: OK, I had to upgrade civix, but that was easy enough. Thanks!  
  
  ---
  
  