@glamsystems/glam-cli 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +16 -43
  2. package/main.js +2223 -1744
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -29,11 +29,13 @@ The CLI expects a configuration file at `~/.config/glam/config.json`. The file s
29
29
  }
30
30
  ```
31
31
 
32
+ _At minimum, you need to provide `cluster`, `json_rpc_url`, and `keypair_path`._
33
+
32
34
  Here's a quick explanation of each field:
33
35
 
34
36
  - `cluster`: Value must be one of `mainnet-beta`, `devnet`, or `localnet`.
35
37
  - `json_rpc_url`: The URL of your preferred Solana JSON RPC endpoint.
36
- - `tx_rpc_url`: Optional. If not set it will default to `json_rpc_url`. Use this to specify a separate RPC endpoint you want to use for sending transactions.
38
+ - `tx_rpc_url`: Optional. If not set it defaults to `json_rpc_url`. Use this to specify a separate RPC endpoint you want to use for landing transactions.
37
39
  - `keypair_path`: Path to your keypair JSON file.
38
40
  - `priority_fee`:
39
41
  - `micro_lamports`: Optional (defaults to 0). If provided, `level` and `helius_api_key` will be ignored.
@@ -71,6 +73,19 @@ Run `glam-cli --help` to see all available commands. Here are the main command c
71
73
  - `glam-cli delegate set <pubkey> <permissions...>` - Set delegate permissions
72
74
  - `glam-cli delegate delete <pubkey>` - Revoke all delegate permissions for a pubkey
73
75
 
76
+ ### Mint Management
77
+
78
+ - `glam-cli mint holders` - List all token holders
79
+ - `glam-cli mint update <state> <options...>` - Update mint policies
80
+ - `-l, --lockup <seconds>` - Set lockup period in seconds
81
+ - `-f, --frozen <boolean>` - Set default account state frozen
82
+ - `glam-cli mint create-account <owner>` - Idempotent create a token account for a user
83
+ - `glam-cli mint freeze <accounts...>` - Freeze token accounts (space-separated pubkeys)
84
+ - `glam-cli mint unfreeze <accounts...>` - Unfreeze token accounts (space-separated pubkeys)
85
+ - `glam-cli mint issue <recipient> <amount>` - Mint tokens to a recipient
86
+ - `glam-cli mint burn <from> <amount>` - Burn tokens from a user
87
+ - `glam-cli mint transfer <from> <to> <amount>` - Force transfer tokens between accounts
88
+
74
89
  ### Integration Management
75
90
 
76
91
  - `glam-cli integration list` - List all enabled integrations
@@ -118,45 +133,3 @@ pnpm install && pnpm run cli-build
118
133
  ```bash
119
134
  npx nx run cli:dev -- --args="command [options]"
120
135
  ```
121
-
122
- ## Docker Support
123
-
124
- ### Build Docker Image
125
-
126
- From the root of the repo:
127
-
128
- ```bash
129
- docker build -f ./cli/Dockerfile -t glam-cli .
130
- ```
131
-
132
- We have a pre-built docker image available at https://github.com/glamsystems/glam/pkgs/container/glam-cli. To pull the latest image:
133
-
134
- ```bash
135
- docker pull ghcr.io/glamsystems/glam-cli
136
- ```
137
-
138
- ### Run in Docker Container
139
-
140
- Mount your configuration directory to the container's `/workspace`:
141
-
142
- ```bash
143
- docker run -v $HOME/.glam-cli-docker:/workspace glam-cli [command] [options]
144
- ```
145
-
146
- The mounted directory should contain:
147
-
148
- - `config.json` - CLI configuration file
149
- - `keypair.json` - Your Solana keypair file
150
-
151
- Example config for Docker:
152
-
153
- ```json
154
- {
155
- "cluster": "mainnet-beta",
156
- "json_rpc_url": "[your-rpc-url]",
157
- "keypair_path": "/workspace/keypair.json",
158
- "priority_fee": {
159
- "micro_lamports": 0
160
- }
161
- }
162
- ```