Skip to content

How to package CLI tools in pex #2400

Answered by jsirois
rpdelaney asked this question in Q&A
Discussion options

You must be logged in to vote

The -c / --script option can be used to set the PEX entry point to a console script at build time (use PEX_SCRIPT=dumbpw my.pex to change this at runtime). So, for example, in the root of your repo run:

pex . -c dumbpw -o my.pex

In general there is a lot of reading to do in pex --help.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jsirois
Comment options

@rpdelaney
Comment options

@jsirois
Comment options

@rpdelaney
Comment options

Answer selected by rpdelaney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants