![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
syncano-cli
Advanced tools
You can find more information about Syncano_v5 in our Specification
# Locally
$ npm install
$ npm run build
# Globally
$ npm install -g
$ syncano-cli
Usage: cli [options] [command]
Commands:
init [options] init project
socket Manage sockets
hosting Manage hosting
sync synchronize configuration
help [cmd] display help for [cmd]
Options:
-h, --help output usage information
# This will connect cli to your account and create a new instance
$ syncano-cli init
# This allows you to choose an existing instance
$ syncano-cli init --instance <existing_instance_name>
# Welcome screen, provide email and password to your syncano account
Welcome to Syncano (syncano.io)
Please login or create an account by entering your email and password:
Creating Syncano Instance... Done
Setting up config files... Done
# For add new hosting to your project use:
$ syncano-cli hosting add
# You can also choose path to hosting directly:
$ syncano-cli hosting add [path_to_hosting_files]
If you don't specify path in command, you will be able to choose one from select list. This action allow only to add new hosting to your project. After that you should synchronize your local files with remote files on hosting.
# To list your hosting containers type:
$ syncano-cli hosting list
Example response:
Your hosting containers:
name: hello
url: https://hello--morning-wood-4770.syncano.site
# To list your sockets type:
$ syncano-cli socket list
Example response:
socket: test
description: Test Socket
endpoint: test/hello
description: Hello world!
path: https://morning-wood-4770.syncano.space/test/hello/
# To list your sockets type:
$ syncano-cli socket info test
Example response:
socket: hello
description: Test Socket
endpoint: test/hello
description: Hello world!
path: https://morning-wood-4770.syncano.space/test/hello/
name: lastname
description: Last name of the person you want to greet
example: Durden
name: firstname
description: First name of the person you want to greet
example: Tyler
response: text/plain
description: Success
exit code: 200
example: Hello Tyler Durden!
description: Failed
exit code: 400
example: No first name or last name provided :(
During Continues Integration process it is easier to configure your project and access to your Syncano Instance using environment variables. Setting those variables you can override settings from ~/.syncano.yml
file and default Syncano API hostname:
CLI is checking those variables:
SYNCANO_HOST
- API host (usually api.syncano.io)SYNCANO_PROJECT_INSTANCE
- Syncano instance for a projectSYNCANO_AUTH_KEY
- Account API Key (you can find it in dashboard or by logging in using API)CLI is provided with Unit tests in Mocha.
To run them:
npm run unit
To watch for changes:
npm run unit:watch
To make sure you have your environment ready
npm run validate
FAQs
CLI for Syncano
The npm package syncano-cli receives a total of 10 weekly downloads. As such, syncano-cli popularity was classified as not popular.
We found that syncano-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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
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.