![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
The Neon CLI supports numerous operations, such as authentication and management of Neon projects, branches, compute endpoints, databases, roles, and more.
The Neon CLI command name is neonctl
. The GitHub repository for the Neon CLI is found here.
This section describes how to install the Neon CLI.
Before installing, ensure that you have met the following prerequisites:
Node.js 16.0 or higher. To check if you already have Node.js, run the following command:
node -v
The npm
package manager. To check if you already have npm
, run the following command:
npm -v
If you need to install Node.js
or npm
, refer to instructions on the official nodejs page or use the Node version manager.
To install the Neon CLI, run the following command:
npm i -g neonctl
To upgrade to the latest version of the Neon CLI, run the npm i -g neonctl
command again.
Run the following command to authenticate a connection to Neon:
neonctl auth
The auth
command launches a browser window where you can authorize the Neon CLI to access your Neon account. Running a Neon CLI command without authenticating with neonctl auth automatically launches the browser authentication process.
Alternatively, you can authenticate a connection with a Neon API key using the --api-key
option when running a Neon CLI command. For example, an API key is used with the following neonctl projects list
command:
neonctl projects list --api-key <neon_api_key>
For information about obtaining an Neon API key, see Authentication, in the Neon API Reference.
The Neon CLI supports autocompletion, which you can configure in a few easy steps. See Neon CLI commands — completion for instructions.
Command | Subcommands | Description |
---|---|---|
auth | Authenticate | |
projects | list , create , update , delete , get | Manage projects |
me | Show current user | |
branches | list , create , rename , add-compute , set-primary , delete , get | Manage branches |
databases | list , create , delete | Manage databases |
roles | list , create , delete | Manage roles |
operations | list | Manage operations |
connection-string | Get connection string | |
completion | Generate a completion script |
Global options are supported with any Neon CLI command.
Option | Description | Type | Default |
---|---|---|---|
-o, --output | Set the Neon CLI output format (json , yaml , or table ) | string | table |
--config-dir | Path to the Neon CLI configuration directory | string | /home/<user>/.config/neonctl |
--api-key | Neon API key | string | "" |
--analytics | Manage analytics | boolean | true |
-v, --version | Show the Neon CLI version number | boolean | - |
-h, --help | Show the Neon CLI help | boolean | - |
Sets the output format. Supported options are json
, yaml
, and table
. The default is table
. Table output may be limited. The json
and yaml
output formats show all data.
neonctl me --output json
Specifies the path to the neonctl
configuration directory. To view the default configuration directory containing you credentials.json
file, run neonctl --help
. The credentials file is created when you authenticate using the neonctl auth
command. This option is only necessary if you move your neonctl
configuration file to a location other than the default.
neonctl projects list --config-dir /home/dtprice/.config/neonctl
Specifies your Neon API key. You can authenticate using a Neon API key when running a Neon CLI command instead of using neonctl auth
. For information about obtaining an Neon API key, see Authentication, in the Neon API Reference.
neonctl <command> --api-key <neon_api_key>
Analytics are enabled by default to gather information about the CLI commands and options that are used by our customers. This data collection assists in offering support, and allows for a better understanding of typical usage patterns so that we can improve user experience. Neon does not collect user-defined data, such as project IDs or command payloads. To opt-out of analytics data collection, specify --no-analytics
or --analytics false
.
Shows the Neon CLI version number.
$ neonctl --version
1.15.0
Shows the neonctl
command-line help. You can view help for neonctl
, a neonctl
command, or a neonctl
subcommand, as shown in the following examples:
neonctl --help
neonctl branches --help
neonctl branches create --help
To run the CLI locally execute build command after making changes:
npm run build
To develop continuously:
npm run watch
To run commands from the local build replace the neonctl
command with node dist
, for example:
node dist branches --help
FAQs
CLI tool for NeonDB Cloud management
The npm package neonctl receives a total of 10,284 weekly downloads. As such, neonctl popularity was classified as popular.
We found that neonctl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.