Creating Packages
Last updated
Was this helpful?
Was this helpful?
CommandBox:my-package> package init slug=my-package --private
- Set name = My Package
- Set slug = my-package@username
- Set version = 0.0.0
- Set private = true
- Set shortDescription = A sweet package
- Set ignore = ["**/.*","test","tests"]
Package Initialized & Created /Users/username/code/sandbox/my-package/box.jsonCommandBox:my-package> package set location=forgeboxStorage# Create user (first time only)
CommandBox> forgebox register username password your@email.com firstName lastName
CommandBox> forgebox login username password
# Create package/git repo
CommandBox> mkdir mypackage --cd
CommandBox> !git init
CommandBox> package init slug=my-package type=modules location=gitUser/my-package
CommandBox> bump --minor message="Initial Commit"
# Publish it
CommandBox> !git remote add origin <git url>
CommandBox> !git push
CommandBox> publish
# Viewable and installable by the world!
CommandBox> forgebox show my-package
CommandBox> install my-package