Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@proton/cli
Advanced tools
Proton CLI
Install NodeJS + NPM + CLI
curl -Ls https://raw.githubusercontent.com/ProtonProtocol/proton-cli/master/install.sh | sh
Install CLI (NPM)
npm i -g @proton/cli
Install CLI (Yarn)
yarn global add @proton/cli
$ npm install -g @proton/cli
$ proton COMMAND
running command...
$ proton (--version)
@proton/cli/0.1.22 darwin-arm64 node-v16.14.0
$ proton --help [COMMAND]
USAGE
$ proton COMMAND
...
proton account ACCOUNTNAME
proton account:create ACCOUNTNAME
proton action CONTRACTNAME [ACTIONNAME] [DATA] [AUTHORIZATION]
proton block:get BLOCKNUMBER
proton boilerplate [FOLDER]
proton chain:get
proton chain:info
proton chain:list
proton chain:set
proton contract:abi ACCOUNTNAME
proton contract:deploy ACCOUNT DIRECTORY
proton help [COMMAND]
proton key:add [PRIVATEKEY]
proton key:generate
proton key:get PUBLICKEY
proton key:list
proton key:lock
proton key:remove [PRIVATEKEY]
proton key:reset
proton key:unlock [PASSWORD]
proton multisig:contract DIRECTORY
proton network
proton permission ACCOUNTNAME
proton table CONTRACTNAME [TABLENAME] [SCOPE]
proton transaction JSON
proton transaction:get TRANSACTIONID
proton version
proton account ACCOUNTNAME
Get Account Information
USAGE
$ proton account [ACCOUNTNAME] [-r]
FLAGS
-r, --raw
DESCRIPTION
Get Account Information
See code: src/commands/account/index.ts
proton account:create ACCOUNTNAME
Create New Account
USAGE
$ proton account:create [ACCOUNTNAME]
DESCRIPTION
Create New Account
See code: src/commands/account/create.ts
proton action CONTRACTNAME [ACTIONNAME] [DATA] [AUTHORIZATION]
Execute Action
USAGE
$ proton action [CONTRACTNAME] [ACTIONNAME] [DATA] [AUTHORIZATION]
ARGUMENTS
CONTRACTNAME
ACTIONNAME
DATA
AUTHORIZATION Account to authorize with
DESCRIPTION
Execute Action
See code: src/commands/action/index.ts
proton block:get BLOCKNUMBER
Get Block
USAGE
$ proton block:get [BLOCKNUMBER]
DESCRIPTION
Get Block
See code: src/commands/block/get.ts
proton boilerplate [FOLDER]
Boilerplate a new Proton Project with contract, frontend and tests
USAGE
$ proton boilerplate [FOLDER] [-h]
FLAGS
-h, --help show CLI help
DESCRIPTION
Boilerplate a new Proton Project with contract, frontend and tests
See code: src/commands/boilerplate.ts
proton chain:get
Get Current Chain
USAGE
$ proton chain:get
DESCRIPTION
Get Current Chain
ALIASES
$ proton network
See code: src/commands/chain/get.ts
proton chain:info
Get Chain Info
USAGE
$ proton chain:info
DESCRIPTION
Get Chain Info
See code: src/commands/chain/info.ts
proton chain:list
All Networks
USAGE
$ proton chain:list
DESCRIPTION
All Networks
See code: src/commands/chain/list.ts
proton chain:set
Set Chain
USAGE
$ proton chain:set [--chain proton|proton-test]
FLAGS
--chain=<option> <options: proton|proton-test>
DESCRIPTION
Set Chain
See code: src/commands/chain/set.ts
proton contract:abi ACCOUNTNAME
Get Contract ABI
USAGE
$ proton contract:abi [ACCOUNTNAME]
DESCRIPTION
Get Contract ABI
See code: src/commands/contract/abi.ts
proton contract:deploy ACCOUNT DIRECTORY
Deploy Contract
USAGE
$ proton contract:deploy [ACCOUNT] [DIRECTORY] [-c] [-a] [-w]
FLAGS
-a, --abiOnly Only deploy ABI
-c, --clear Removes WASM + ABI from contract
-w, --wasmOnly Only deploy WASM
DESCRIPTION
Deploy Contract
See code: src/commands/contract/deploy.ts
proton help [COMMAND]
display help for proton
USAGE
$ proton help [COMMAND] [--all]
ARGUMENTS
COMMAND command to show help for
FLAGS
--all see all commands in CLI
DESCRIPTION
display help for proton
See code: @oclif/plugin-help
proton key:add [PRIVATEKEY]
Add Key
USAGE
$ proton key:add [PRIVATEKEY]
DESCRIPTION
Add Key
See code: src/commands/key/add.ts
proton key:generate
Generate Key
USAGE
$ proton key:generate
DESCRIPTION
Generate Key
See code: src/commands/key/generate.ts
proton key:get PUBLICKEY
Find private key for public key
USAGE
$ proton key:get [PUBLICKEY]
DESCRIPTION
Find private key for public key
See code: src/commands/key/get.ts
proton key:list
List All Key
USAGE
$ proton key:list
DESCRIPTION
List All Key
See code: src/commands/key/list.ts
proton key:lock
Lock Keys with password
USAGE
$ proton key:lock
DESCRIPTION
Lock Keys with password
See code: src/commands/key/lock.ts
proton key:remove [PRIVATEKEY]
Remove Key
USAGE
$ proton key:remove [PRIVATEKEY]
DESCRIPTION
Remove Key
See code: src/commands/key/remove.ts
proton key:reset
Reset password (Caution: deletes all private keys stored)
USAGE
$ proton key:reset
DESCRIPTION
Reset password (Caution: deletes all private keys stored)
See code: src/commands/key/reset.ts
proton key:unlock [PASSWORD]
Unlock all keys (Caution: Your keys will be stored in plaintext on disk)
USAGE
$ proton key:unlock [PASSWORD]
DESCRIPTION
Unlock all keys (Caution: Your keys will be stored in plaintext on disk)
See code: src/commands/key/unlock.ts
proton multisig:contract DIRECTORY
Multisig Contract
USAGE
$ proton multisig:contract [DIRECTORY]
DESCRIPTION
Multisig Contract
See code: src/commands/multisig/contract.ts
proton network
Get Current Chain
USAGE
$ proton network
DESCRIPTION
Get Current Chain
ALIASES
$ proton network
proton permission ACCOUNTNAME
Add Key
USAGE
$ proton permission [ACCOUNTNAME]
ARGUMENTS
ACCOUNTNAME Account to modify
DESCRIPTION
Add Key
See code: src/commands/permission/index.ts
proton table CONTRACTNAME [TABLENAME] [SCOPE]
Get Table Storage Rows
USAGE
$ proton table [CONTRACTNAME] [TABLENAME] [SCOPE] [-l <value>] [-u <value>] [-k <value>] [-r] [-p] [-c
<value>] [-i <value>]
FLAGS
-c, --limit=<value> [default: 100]
-i, --indexPosition=<value> [default: 1]
-k, --keyType=<value>
-l, --lowerBound=<value>
-p, --showPayer
-r, --reverse
-u, --upperBound=<value>
DESCRIPTION
Get Table Storage Rows
See code: src/commands/table/index.ts
proton transaction JSON
Execute Transaction
USAGE
$ proton transaction [JSON]
DESCRIPTION
Execute Transaction
See code: src/commands/transaction/index.ts
proton transaction:get TRANSACTIONID
Get Transaction by Transaction ID
USAGE
$ proton transaction:get [TRANSACTIONID]
DESCRIPTION
Get Transaction by Transaction ID
See code: src/commands/transaction/get.ts
proton version
Version of CLI
USAGE
$ proton version
DESCRIPTION
Version of CLI
See code: src/commands/version.ts
FAQs
Proton CLI
The npm package @proton/cli receives a total of 8 weekly downloads. As such, @proton/cli popularity was classified as not popular.
We found that @proton/cli 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.