Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openstapps/api-cli

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openstapps/api-cli

CLI client for @openstapps/api

  • 3.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@openstapps/api-cli

To get some data into a local backend-node-instance, you can run this as a standalone program to copy data of a remote backend-node-instance into your local one.

Example to copy all Events of the b-tu instance:

npm install
npm run build
node ./lib/cli.js copy Event https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100

Example to index all items from @openstapps/core test files to a backend:

npm install
npm run build
node ./lib/cli.js e2e http://localhost:3000

Example to clone the full database

node app.js copy "*" https://mobile.app.uni-frankfurt.de http://localhost:3000 100

Program arguments

node ./lib/cli.js copy <type> <from> <to> <batchSize>

node ./lib/cli.js e2e <to>
Options

The source identifier for the bulk to use with the target instance (default is 'copy')

-s, --bulkSource <bulkScource>

The App version to use (unset by default)

-a, --appVersion <version>

The only available option for e2e command. File path to json test files each containing a SCThing.

-s, --samples <path>

Example execution

with docker when backend is running on localhost:3000:

docker run --net=host registry.gitlab.com/openstapps/api/cli copy Place https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100

Or using e2e command:

docker run --net=host registry.gitlab.com/openstapps/api/cli e2e http://localhost:3000

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc