
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@pxblue/cli
Advanced tools
A command-line interface for quickly scaffolding Power Xpert Blue applications
This Command Line Interface is a utility for creating new PX Blue applications with automatic integration of themes, components, etc.
In order to use this utility you must have the following installed:
Additional requirements for creating React Native projects:
The PX Blue CLI can be utilized via npx without having to install any global packages (recommended):
npx -p @pxblue/cli pxb <command>
If you would prefer to have a global install of the CLI you may do so via:
$ yarn global add @pxblue/cli
or
$ npm install -g @pxblue/cli
NOTE: If you are using NPM v7, the CLI will not work via npx — you must install it globally. Check periodically to make sure you have the latest version.
| command | description |
|---|---|
pxb help | lists all available commands and descriptions |
pxb version | displays the version of the currently installed CLI |
pxb new <framework> | Creates a new skeleton project with PX Blue integration. You'll be prompted to give your project a name and select various options depending on your selected framework. |
The following table list out some options for the pxb new command. All these options can be configured
| Option | Description |
|---|---|
--framework=<angular|react|ionic|react-native> | The framework in which the project will be generated. |
--name=<name> | Project name |
--cli=<rnc|expo> | (React Native projects only) which CLI to use to generate the project. We support rnc (React-Native Community CLI) or expo (Expo CLI) |
--template=<blank|routing|authentication> | Template to use to start the project |
--lint | (TypeScript projects only) Install and configure PX Blue lint package (omit or --lint=false to disable) |
--prettier | Install and configure PX Blue prettier package (omit or --prettier=false to disable) |
--language=<typescript|javascript> | (React & React Native Only) The language in which the project will be generated |
To start a new project with PX Blue integration follow the steps below. We recommend using npx (instead of installing it globally) to run the CLI as it will ensure you are always using the most up-to-date version.
npx -p @pxblue/cli pxb newnpx -p @pxblue/cli pxb new <framework>
Note for Ionic: If you are creating an Ionic project and you are behind a proxy, ensure that you have set an environment variable for
IONIC_HTTP_PROXY. Depending on your firewall settings, you may also need to temporarily add an environment variable forNODE_TLS_REJECT_UNAUTHORIZED=0(remove this promptly after your project is created).
Note for Expo projects: If you are creating an Expo project and you are behind a proxy, you will need to ensure that you have environment variables set for
HTTP_PROXYandHTTPS_PROXY. Depending on your firewall settings, you may also need to temporarily add an environment variable forNODE_TLS_REJECT_UNAUTHORIZED=0(remove this promptly after your project is created).
Note for React Native projects: If you are using the React Native Community CLI for your react native project, there are additional steps you must run for your project to run on iOS. Follow the on-screen instructions for running
pod installto link the react-native-vector-icons package. If you are using xCode 11+, you will also need to update the Build Phases in xCode to avoid duplicated resources errors (refer to this issue).
You should always use the latest version of the templates when starting a new project to make sure you have the latest features and bug fixes.
If you are a library maintainer and you need to test out different versions of the templates during development, there are several ways to do this:
--alpha or --beta flags on the command line. This will install the latest alpha or beta version of the template package from NPM, respectively.--template=templateName@x.x.x to specify a specific version of the template package to install from NPM.--template=file:./path/to/folder. When using this syntax, the directory that you point to should contain all of the necessary files for a template. This is usually the "template name" folder (e.g., ./myTemplates/authentication, not ./myTemplates/authentication/template).
--template=file:./angular-cli-templates/src/app/<name>--template=file:./react-cli-templates/<name>--template=file:./react-native-cli-templates/<name>FAQs
A command-line interface for quickly scaffolding Power Xpert Blue applications
The npm package @pxblue/cli receives a total of 0 weekly downloads. As such, @pxblue/cli popularity was classified as not popular.
We found that @pxblue/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.