
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Create an xpd_config.json file in the project root or execute npx xp-deploy init
{
"default": {
"user": "dev",
"deployTo": "/home/dev/www/test",
"deployFrom": "./dist",
"keepReleases": 2,
"copy": false
},
"test": {
"servers": "test.example.com",
"preDeploy": {
"local": ["echo 1", "echo 2"],
"remote": "echo 3"
},
"postDeploy": {
"local": "echo 1",
"remote": "echo 2"
}
},
"production": {
"servers": ["example-01.com", "example-02.com"],
"preDeploy": {
"local": ["echo 1", "echo 2"],
"remote": "echo 3"
},
"postDeploy": {
"local": "echo 1",
"remote": "echo 2"
}
}
}
The root key of the configuration is the name of the environment. In `default' you can specify parameters that will be applied to all default environments. Further use of the parameters overwrites the defaults.
user Username for connection.
servers The address of the server to connect. If there are several servers, an array is used.
deployTo Directory to deploy on server.
deployFrom Local directory with dist.
keepReleases The number of releases to be left on the server.
preDeploy An object that contains commands to run before uploading files to the server. local to execute local commands, remote to execute on the server.
postDeploy Similarly to preDeploy only commands are executed after files are loaded.
copy Indicates whether to copy the previous release before updating the files.
npx xp-deploy deploy to:test
Rollback to a previous release. This command is only available when keepReleases is configured.
By default, rollback to the previous release (1 release back):
npx xp-deploy rollback to:test
Rollback to N releases back:
npx xp-deploy rollback to:test 3
If the specified count exceeds the available number of releases on the server, an error will be thrown.
FAQs
Universal automation and deployment tool written in JavaScript.
We found that xp-deploy demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.