npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

w3platformsdk

v1.0.38

Published

The W3 Platform CLI is a Node.js based command-line tool that provides a set of utilities to interact with the W3 Platform services. This includes managing credentials, profiles, initializing environments, and handling user accounts.

Downloads

24

Readme

W3 Platform Command Line Interface

The W3 Platform CLI is a Node.js based command-line tool that provides a set of utilities to interact with the W3 Platform services. This includes managing credentials, profiles, initializing environments, and handling user accounts.

Installation

Ensure that you have Node.js installed on your system.

  1. Clone this repository or download the source code.
  2. Navigate to the directory where you downloaded the CLI.
  3. Run the following command to install dependencies:
npm install
  1. To make the CLI globally available on your system, run:
npm link

Configuration

Before using the CLI, you need to configure your credentials:

w3platform-cli configure

Follow the prompts to enter your organization's name, API key, org ID, and secret.

Commands

The CLI supports various commands, such as:

  • configure: Sets up your API key and other configuration details required to authenticate against the W3 Platform services.
  • profiles: Lists all the profiles that have been configured on your local machine.
  • profile: Displays the currently active profile with its configuration details.
  • setProfile [profileName]: Switches the active profile to the one specified by profileName.
  • init: Begins the initialization process for your organization, setting up the necessary environment for using W3 Platform services.
  • createOwnerAccount: Specifically designed to be used during the initialization process, this creates the primary owner account for your organization.
  • createAccount: Creates a new user account within the organization.
  • createUser [accountId] [name]: Registers a new user within the account specified by accountId with the name name.
  • initEnv: Triggers the creation of a full environment setup, including all necessary services and configurations.
  • addUserRole [userId] [role]: Assigns a new role to a user identified by userId.
  • removeUserRole [userId] [role]: Removes a role from a user identified by userId.
  • assignUserToWebUser [userId] [UserWebId]: Links a user to a web user profile.
  • registerAdmin [accountId]: Registers an admin account using the accountId provided.
  • registerAccount [accountId]: Finalizes the account registration process for an account specified by accountId.
  • registerStorageService [accountId]: Signs up the account identified by accountId for the W3 storage service.
  • uploadContent [accountId] [fileName] [type] [description] [TTL]: Uploads content to the W3 platform under the provided account.
  • getContent [tokenId]: Retrieves content from the W3 platform using the provided token ID.
  • signupStorageRead [accountId]: Allows the specified account to read from W3 storage service.
  • assignContnet [tokenId] [tokenOwnerAccountId] [assignedAccountId]: Assigns access for content identified by tokenId to another account.
  • deprecateToken [tokenId] [storageAccountId]: Deprecates a token that was previously in use.
  • organizations: Lists all available organizations within the scope of the credentials provided.
  • callService [serviceId] [serviceOrgid] [accountId] [request]: Invokes a service with a specific request.
  • signupUser [name] [password] [email] [phone] [accountId]: Registers a web user on the W3 platform.
  • verifyUser [name] [code]: Verifies a user's identity with the provided code.
  • userLogin [name] [password]: Logs in a user to the W3 platform.
  • validateToken [tokenResponseFile]: Validates a user's login token.
  • forgotPassword [username]: Initiates a password reset process for a user.
  • confirmResetPassword [username] [newpassword] [code]: Finalizes the password reset process for a

Usage

To use the CLI, run w3platform followed by the command you want to execute. For example:

w3platform profiles

This command will display the current organization profiles configured on your system.

Contributing

Contributions are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is open-source and available under the MIT License.

Support

If you encounter any issues or require assistance, please raise an issue in the repository or contact [email protected].