The penx-cli
is a command-line tool designed to streamline the development and management of themes for the PenX project. This documentation provides an overview of its commands, usage examples, and best practices for working with the tool.
To install the penx-cli
, use the following command:
npm install -g penx-cli
This will globally install the CLI tool on your system, making it accessible from any directory.
Log in to your PenX account to authenticate and gain access to additional features.
penx login
Log out of your PenX account.
penx logout
Verify which account is currently logged in.
penx whoami
Before develop a theme for PenX, you should clone penx to your computer.
Follow this docs to develop PenX locally: local-development
git clone https://github.com/penx-labs/penx
Set up a new theme in your PenX project. This command creates the necessary structure and configuration files for a new theme.
penx theme init
Install an existing theme into your PenX project. Replace <theme-name>
with the name of the desired theme.
penx theme install <theme-name>
Example:
penx theme install my-awesome-theme
Publish your custom theme to the PenX theme marketplace, making it available for others to use.
penx theme publish
To view help information for any command, use the --help
flag. For example:
penx --help
Or for a specific command:
penx theme --help
This will display detailed information about available subcommands and options.
- Always run
penx-cli
commands from within your PenX project directory. - Use meaningful names when initializing or publishing themes.
- Regularly update
penx-cli
to access new features and bug fixes:npm update -g penx-cli
- Provide descriptive metadata when publishing themes to improve discoverability in the marketplace.
If you encounter issues or have suggestions for improvement, please visit the PenX GitHub repository to open an issue or contribute directly.
Happy theming! 🎨