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

@tableland/studio-cli

v0.3.0

Published

Tableland command line tools

Downloads

65

Readme

@tableland/studio-cli

License: MIT AND Apache-2.0 Version standard-readme compliant

A Tableland Studio command line tool.

Background

The Studio command line lets you interact with your Studio teams, projects, and tables. The full, up-to-date docs can be found: here.

Install

You can install via npm.

npm install -g @tableland/studio-cli

Usage

First, you will need a Studio account, which you can create for free here: https://studio.tableland.xyz

Once you have an account read the output of the help command:

$ npx studio --help
studio <command>

Commands:
  studio login                              create a login session via private
                                            key
  studio logout                             logout current session
  studio team <sub>                         manage studio teams
  studio init                               create a tablelandrc config file
  studio project <sub>                      manage studio projects
  studio deployment <sub>                   manage studio deployments
  studio import-data <table> <file>         write the content of a csv into an
                                            existing table
  studio query                              open a shell to run sql statements
                                            against your selected project
  studio import-table <table> <project>     import an existing tableland table
  <description> [name]                      into a project with description and
                                            optionally with a new name
  studio use [context] [id]                 use the given context id for all
                                            ensuing commands. context can be one
                                             of (team, project, or api).
  studio unuse [context]                    remove any existing id from the
                                            given context

Options:
  -h, --help              Show help                                    [boolean]
  -V, --version           Show version number                          [boolean]
  -a, --apiUrl            RPC URL for the Studio API      [string] [default: ""]
      --baseUrl           The URL of your Tableland validator
                                                          [string] [default: ""]
  -c, --chain             The EVM chain to target         [string] [default: ""]
  -k, --privateKey        Private key string              [string] [default: ""]
  -p, --providerUrl       JSON RPC API provider URL. (e.g., https://eth-rinkeby.
                          alchemyapi.io/v2/123abc123a...) [string] [default: ""]
      --projectId, --pid  Project ID the command is scoped to
                                                          [string] [default: ""]
      --store             path to file store to use for login session
                                    [string] [default: ".studioclisession.json"]

Your first step is probably going to be either running the init command (npx studio init), or to login (npx studio login --privateKey <include the private key you used to create your studio account>). Note that the init command will ask you some questions, and potentially store your private key in the .tablelandrc.json config file. If you pass your private key to the login command we won't store your private key anywhere. If you plan to submit blockchain transactions via the cli you will probably want to store your private key in the config file, if you don't plan to send transactions you only need your private key to login, and there's no need to store it in the config file.

At this point you are ready to use all the cli commands. Refer to the docs for the most recent usage recommendations. If you have any problems you can open an issue here, or chat with us in Discord.

Contributing

PRs accepted. Studio is still under initial development, so if you are interested in helping out, feel free to connect on Discord: https://tableland.xyz/discord

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT AND Apache-2.0, © 2021-2024 Tableland Network Contributors