aux4 license tool
The aux4 license tool enables you to easily manage open-source licenses within your projects. With this package, you can:
This tool integrates seamlessly with the aux4 ecosystem.
aux4 aux4 pkger install aux4/license
This package requires Node.js and npm, which will be handled automatically by aux4 system installers. The following installers may be used:
For more details about system installers, see system-installer.
List all available licenses:
aux4 aux4 license list
Generate a license file for your project:
aux4 aux4 license use MIT --project my-app --owner "Alice" --year 2024
The license command group provides three primary commands:
aux4 aux4 license list [name] - List all available licenses or filter by a partial name matchaux4 aux4 license info <name> [--json] - Show detailed information about a specific licenseaux4 aux4 license use <name> --project <project> --owner <owner> --year <year> - Generate a LICENSE file for your projectList all licenses, or only those matching a given name.
Usage:
aux4 aux4 license list [name]
Variables:
name (optional, positional): Filter licenses by name (e.g., MIT, Apache-2.0).Show detailed information about a specific license.
Usage:
aux4 aux4 license info <name> [--json]
Variables:
name (required, positional): The exact license identifier (e.g., MIT, GPL-3.0).json (optional): Output information in JSON format instead of formatted text (default: false).Generate a LICENSE file populated with your project details.
Usage:
aux4 aux4 license use <name> --project <project> --owner <owner> --year <year>
Variables:
name (required, positional): License identifier to apply (e.g., MIT, Apache-2.0).project (optional): The name of your project (default: none).owner (optional): The copyright holder or organization (default: none).year (optional): Year to attribute in the license (default: current year).List every available license:
aux4 aux4 license list
Filter licenses by name:
aux4 aux4 license list BSD
Get details on the Apache 2.0 license:
aux4 aux4 license info Apache-2.0
Get license information in JSON format for programmatic use:
aux4 aux4 license info MIT --json
Apply the MIT license to a new project:
aux4 aux4 license use MIT --project my-app --owner "Alice" --year 2024
# Initialize a new repository
mkdir cool-project && cd cool-project
# Apply Apache-2.0 license with organization and year
aux4 aux4 license use Apache-2.0 --project cool-project --owner "Acme Corp" --year 2023
No additional configuration is required for this package.
This package is licensed under the Apache-2.0 License.
